From 7028045e341fe66b15c1e6c2c30bb1c61e0b060b Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 21 Nov 2024 03:05:46 +0000 Subject: [PATCH] Updated Rector to commit f3750d785fd5128c9b3f124036d5e6532fc63807 https://github.com/rectorphp/rector-src/commit/f3750d785fd5128c9b3f124036d5e6532fc63807 [DeadCode] Skip by docblock definition on RemoveAlwaysTrueIfConditionRector (#6461) --- .../DeadCode/Rector/If_/RemoveAlwaysTrueIfConditionRector.php | 4 ++-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 */