mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-01 00:40:52 +00:00
Updated Rector to commit ef84a1a722c39839de1bcd79e0d3558b3e7d935d
ef84a1a722
[PHPStanStaticTypeMapper] Clean up Intersection type check on UnionTypeMapper (#5864)
This commit is contained in:
parent
ed1310b8dc
commit
f7723ed647
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user