From 897110e2bf7b3fab140742cf93b7d6cd94cd19f1 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 28 Nov 2024 10:19:50 +0000 Subject: [PATCH] Updated Rector to commit 101bdbfa9bd837daa593ad06f2eee44d259cbcca https://github.com/rectorphp/rector-src/commit/101bdbfa9bd837daa593ad06f2eee44d259cbcca [Php70] Do not replace if method call if method exists in current class on call same method with parent on Php4ConstructorRector (#6520) --- rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php | 2 +- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php b/rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php index 70f451f9910..cc8af509edd 100644 --- a/rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php +++ b/rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php @@ -115,7 +115,7 @@ CODE_SAMPLE $stmtKey = $psr4ConstructorMethod->getAttribute(AttributeKey::STMT_KEY); unset($node->stmts[$stmtKey]); } - if ($this->isLocalMethodCallNamed($classMethodStmt->expr, $parentClassName)) { + if ($this->isLocalMethodCallNamed($classMethodStmt->expr, $parentClassName) && !$node->getMethod($parentClassName) instanceof ClassMethod) { /** @var MethodCall $expr */ $expr = $classMethodStmt->expr; $classMethodStmt->expr = new StaticCall(new FullyQualified($parentClassName), new Identifier(MethodName::CONSTRUCT), $expr->args); diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index c86759e02ef..26a731e355a 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 = '0635cd9d519b9f8464e59e968bdfdcfde9b656bb'; + public const PACKAGE_VERSION = '101bdbfa9bd837daa593ad06f2eee44d259cbcca'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-11-28 08:40:54'; + public const RELEASE_DATE = '2024-11-28 17:17:33'; /** * @var int */