From 654c818f4e94037aaef9fbac843e6c5c0a140b6b Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 19 Oct 2023 13:47:36 +0000 Subject: [PATCH] Updated Rector to commit 5ac3cb377abf968396c23573d8562e6ab6967f2a https://github.com/rectorphp/rector-src/commit/5ac3cb377abf968396c23573d8562e6ab6967f2a [Php70] Fix Php4 contructor not replaced with __construct() on php 7.4 environment (#5189) --- 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 1108e9dcde8..42c513df025 100644 --- a/rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php +++ b/rules/Php70/Rector/ClassMethod/Php4ConstructorRector.php @@ -100,7 +100,7 @@ CODE_SAMPLE // process parent call references first $this->processClassMethodStatementsForParentConstructorCalls($psr4ConstructorMethod, $scope); // does it already have a __construct method? - if (!$classReflection->hasConstructor()) { + if (!$classReflection->hasNativeMethod(MethodName::CONSTRUCT)) { $psr4ConstructorMethod->name = new Identifier(MethodName::CONSTRUCT); } $classMethodStmts = $psr4ConstructorMethod->stmts; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index bfa304514cf..761af7779df 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 = '4795d003614d98b04c3fce209e855f18ac48ed09'; + public const PACKAGE_VERSION = '5ac3cb377abf968396c23573d8562e6ab6967f2a'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-10-18 09:55:01'; + public const RELEASE_DATE = '2023-10-19 20:44:46'; /** * @var int */