Updated Rector to commit a43f041278835523c96758f6df5d0e964e51ee9d

a43f041278  [DeadCode] Skip sub type false => bool on RemoveUselessVarTagRector  (#5588)
This commit is contained in:
Tomas Votruba 2024-02-09 08:11:26 +00:00
parent e5f35d1a39
commit e32eadddc1
3 changed files with 6 additions and 3 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '178ce5c65a820a5c42c7928486a044b44a976436';
public const PACKAGE_VERSION = 'a43f041278835523c96758f6df5d0e964e51ee9d';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-08 20:11:18';
public const RELEASE_DATE = '2024-02-09 15:09:10';
/**
* @var int
*/

View File

@ -104,6 +104,9 @@ final class TypeComparator
{
$phpParserNodeType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($phpParserNode);
$phpStanDocType = $this->staticTypeMapper->mapPHPStanPhpDocTypeNodeToPHPStanType($phpStanDocTypeNode, $node);
if (!$this->areTypesEqual($phpParserNodeType, $phpStanDocType) && $this->isSubtype($phpStanDocType, $phpParserNodeType)) {
return \false;
}
// normalize bool union types
$phpParserNodeType = $this->normalizeConstantBooleanType($phpParserNodeType);
$phpStanDocType = $this->normalizeConstantBooleanType($phpStanDocType);

File diff suppressed because one or more lines are too long