mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-06 11:20:50 +00:00
Updated Rector to commit 10c7bc6a4114dddde311e49efcd9c441ea92babc
10c7bc6a41
[Performance][Php81] Ensure check readonly on param only on __construct() method (#5693)
This commit is contained in:
parent
ae1f64a7a0
commit
daa84a6ddf
|
@ -116,7 +116,8 @@ CODE_SAMPLE
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$hasChanged = \false;
|
$hasChanged = \false;
|
||||||
foreach ($node->getMethods() as $classMethod) {
|
$classMethod = $node->getMethod(MethodName::CONSTRUCT);
|
||||||
|
if ($classMethod instanceof ClassMethod) {
|
||||||
foreach ($classMethod->params as $param) {
|
foreach ($classMethod->params as $param) {
|
||||||
$justChanged = $this->refactorParam($node, $classMethod, $param, $scope);
|
$justChanged = $this->refactorParam($node, $classMethod, $param, $scope);
|
||||||
// different variable to ensure $hasRemoved not replaced
|
// different variable to ensure $hasRemoved not replaced
|
||||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const PACKAGE_VERSION = 'e29b97e4b5d6dd5a0c5ee442067cb52f7dbb7f25';
|
public const PACKAGE_VERSION = '10c7bc6a4114dddde311e49efcd9c441ea92babc';
|
||||||
/**
|
/**
|
||||||
* @api
|
* @api
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
public const RELEASE_DATE = '2024-03-05 18:26:34';
|
public const RELEASE_DATE = '2024-03-05 18:34:08';
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user