Updated Rector to commit ef84a1a722c39839de1bcd79e0d3558b3e7d935d

ef84a1a722 [PHPStanStaticTypeMapper] Clean up Intersection type check on UnionTypeMapper (#5864)
This commit is contained in:
Tomas Votruba 2024-05-09 01:12:15 +00:00
parent ed1310b8dc
commit f7723ed647
2 changed files with 2 additions and 6 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'acb0b5d3ad760e7253fb6f49b4047ec6226384d4';
public const PACKAGE_VERSION = 'ef84a1a722c39839de1bcd79e0d3558b3e7d935d';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-09 06:49:57';
public const RELEASE_DATE = '2024-05-09 08:08:22';
/**
* @var int
*/

View File

@ -14,7 +14,6 @@ use PhpParser\Node\UnionType as PhpParserUnionType;
use PhpParser\NodeAbstract;
use PHPStan\PhpDocParser\Ast\Type\TypeNode;
use PHPStan\Type\Constant\ConstantBooleanType;
use PHPStan\Type\IntersectionType;
use PHPStan\Type\IterableType;
use PHPStan\Type\MixedType;
use PHPStan\Type\NullType;
@ -277,9 +276,6 @@ final class UnionTypeMapper implements TypeMapperInterface
if ($phpParserNode === null) {
return null;
}
if ($phpParserNode instanceof PHPParserNodeIntersectionType && $unionedType instanceof IntersectionType) {
return null;
}
$phpParserUnionedTypes[] = $phpParserNode;
}
/** @var Identifier[]|Name[] $phpParserUnionedTypes */