diff --git a/rules/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector.php b/rules/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector.php index 089bce253c0..8814f9f4a62 100644 --- a/rules/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector.php +++ b/rules/DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector.php @@ -98,7 +98,7 @@ CODE_SAMPLE if ($node->elseifs !== []) { return null; } - $conditionStaticType = $this->getType($node->cond); + $conditionStaticType = $this->nodeTypeResolver->getNativeType($node->cond); if (!$conditionStaticType->isTrue()->yes()) { return null; } @@ -125,7 +125,7 @@ CODE_SAMPLE if ($this->exprAnalyzer->isNonTypedFromParam($variable)) { return \true; } - $type = $this->getType($variable); + $type = $this->nodeTypeResolver->getNativeType($variable); if ($type instanceof IntersectionType) { foreach ($type->getTypes() as $subType) { if ($subType->isArray()->yes()) { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 62818e1943f..8431c300d88 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 = '57b9ccfb1404a455591a3d405377e46a71528f11'; + public const PACKAGE_VERSION = 'f3750d785fd5128c9b3f124036d5e6532fc63807'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-11-21 09:37:59'; + public const RELEASE_DATE = '2024-11-21 10:03:25'; /** * @var int */