Updated Rector to commit 10c7bc6a4114dddde311e49efcd9c441ea92babc

10c7bc6a41 [Performance][Php81] Ensure check readonly on param only on __construct() method (#5693)
This commit is contained in:
Tomas Votruba 2024-03-05 11:36:28 +00:00
parent ae1f64a7a0
commit daa84a6ddf
2 changed files with 4 additions and 3 deletions

View File

@ -116,7 +116,8 @@ CODE_SAMPLE
return null;
}
$hasChanged = \false;
foreach ($node->getMethods() as $classMethod) {
$classMethod = $node->getMethod(MethodName::CONSTRUCT);
if ($classMethod instanceof ClassMethod) {
foreach ($classMethod->params as $param) {
$justChanged = $this->refactorParam($node, $classMethod, $param, $scope);
// different variable to ensure $hasRemoved not replaced

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'e29b97e4b5d6dd5a0c5ee442067cb52f7dbb7f25';
public const PACKAGE_VERSION = '10c7bc6a4114dddde311e49efcd9c441ea92babc';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-03-05 18:26:34';
public const RELEASE_DATE = '2024-03-05 18:34:08';
/**
* @var int
*/