diff --git a/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php b/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php index 4a8450bfaf4..4571c9e043b 100644 --- a/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php +++ b/rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php @@ -129,7 +129,7 @@ CODE_SAMPLE return null; } $classType = $this->nodeTypeResolver->getType($instanceof->class); - $exprType = $this->nodeTypeResolver->getType($instanceof->expr); + $exprType = $this->nodeTypeResolver->getNativeType($instanceof->expr); if ($classType->equals($exprType)) { return \true; } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 6922672c10e..8747dee47a7 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '0dd1a43904e7d12c76e810b1bbd87d99a0f835c3'; + public const PACKAGE_VERSION = 'aaf006c8f534230b1bbc4c4fb3747cd660305718'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-03-21 12:34:15'; + public const RELEASE_DATE = '2024-03-21 11:35:06'; /** * @var int */