diff --git a/rules/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector.php b/rules/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector.php index adf72e3c49d..e5d2d421ef0 100644 --- a/rules/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector.php +++ b/rules/DeadCode/Rector/StaticCall/RemoveParentCallWithoutParentRector.php @@ -117,6 +117,9 @@ private function isParentStaticCall(Expr $expr) : bool if (!$expr instanceof StaticCall) { return \false; } + if ($expr->name instanceof Expr) { + return \false; + } return $this->isName($expr->class, ObjectReference::PARENT); } private function shouldSkipClass(Class_ $class) : bool diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 4b455b69753..1b99d4851f8 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 = 'b833a753cc1d999fe0e832367a83d48311e378b4'; + public const PACKAGE_VERSION = 'd01cdf411c072abfdacc464c9bf07a4521a8d40e'; /** * @api * @var string */ - public const RELEASE_DATE = '2025-01-07 01:04:32'; + public const RELEASE_DATE = '2025-01-07 02:35:47'; /** * @var int */