Updated Rector to commit 23917974669d13ac0632cf53f6c85c7f74e98a6b

2391797466 [CodeQuality] Skip append non empty array on ForeachItemsAssignToEmptyArrayToAssignRector (#6390)
This commit is contained in:
Tomas Votruba 2024-10-20 00:34:29 +00:00
parent 8a2b111d6a
commit 9e205fbc3e
2 changed files with 6 additions and 2 deletions

View File

@ -119,6 +119,10 @@ CODE_SAMPLE
return NodeTraverser::STOP_TRAVERSAL;
}
}
if ($subNode instanceof Assign && $subNode->var instanceof Variable && $this->isNames($subNode->var, $emptyArrayVariables) && !$this->valueResolver->isValue($subNode->expr, [])) {
$isAppend = \true;
return NodeTraverser::STOP_TRAVERSAL;
}
return null;
});
return $isAppend;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3bd920dc75b8b25cace7af734d127a2bf275881d';
public const PACKAGE_VERSION = '23917974669d13ac0632cf53f6c85c7f74e98a6b';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-19 14:27:42';
public const RELEASE_DATE = '2024-10-20 07:32:00';
/**
* @var int
*/