Skip to content

Commit

Permalink
Updated Rector to commit bb90e0bbafee5e47720d9fda8f7e46fad5bd90a2
Browse files Browse the repository at this point in the history
rectorphp/rector-src@bb90e0b [PHPStanStaticTypeMapper] Clean up non-Node type check on UnionTypeMapper (#5862)
  • Loading branch information
TomasVotruba committed May 8, 2024
1 parent dcdff77 commit 9da012c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '8371040f72445fda4e96f29783b5de5351524c8a';
public const PACKAGE_VERSION = 'bb90e0bbafee5e47720d9fda8f7e46fad5bd90a2';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-05-08 19:56:34';
public const RELEASE_DATE = '2024-05-08 21:03:45';
/**
* @var int
*/
Expand Down
9 changes: 1 addition & 8 deletions src/PHPStanStaticTypeMapper/TypeMapper/UnionTypeMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,7 @@ private function matchTypeForUnionedTypes(UnionType $unionType, string $typeKind
if ($phpParserUnionType instanceof PhpParserUnionType) {
return $this->resolveUnionTypeNode($unionType, $phpParserUnionType, $typeKind);
}
if ($phpParserUnionType instanceof Node) {
return $phpParserUnionType;
}
$type = $this->typeFactory->createMixedPassedOrUnionType($unionType->getTypes());
if (!$type instanceof UnionType) {
return $this->phpStanStaticTypeMapper->mapToPhpParserNode($type, $typeKind);
}
return null;
return $phpParserUnionType;
}
private function processResolveCompatibleObjectCandidates(UnionType $unionType) : ?Node
{
Expand Down

0 comments on commit 9da012c

Please sign in to comment.