mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 15:42:22 +00:00
Updated Rector to commit 5ac3cb377abf968396c23573d8562e6ab6967f2a
5ac3cb377a
[Php70] Fix Php4 contructor not replaced with __construct() on php 7.4 environment (#5189)
This commit is contained in:
parent
a169643611
commit
654c818f4e
|
@ -100,7 +100,7 @@ CODE_SAMPLE
|
||||||
// process parent call references first
|
// process parent call references first
|
||||||
$this->processClassMethodStatementsForParentConstructorCalls($psr4ConstructorMethod, $scope);
|
$this->processClassMethodStatementsForParentConstructorCalls($psr4ConstructorMethod, $scope);
|
||||||
// does it already have a __construct method?
|
// does it already have a __construct method?
|
||||||
if (!$classReflection->hasConstructor()) {
|
if (!$classReflection->hasNativeMethod(MethodName::CONSTRUCT)) {
|
||||||
$psr4ConstructorMethod->name = new Identifier(MethodName::CONSTRUCT);
|
$psr4ConstructorMethod->name = new Identifier(MethodName::CONSTRUCT);
|
||||||
}
|
}
|
||||||
$classMethodStmts = $psr4ConstructorMethod->stmts;
|
$classMethodStmts = $psr4ConstructorMethod->stmts;
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = '4795d003614d98b04c3fce209e855f18ac48ed09';
|
public const PACKAGE_VERSION = '5ac3cb377abf968396c23573d8562e6ab6967f2a';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2023-10-18 09:55:01';
|
public const RELEASE_DATE = '2023-10-19 20:44:46';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user