mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
Updated Rector to commit 23917974669d13ac0632cf53f6c85c7f74e98a6b
2391797466
[CodeQuality] Skip append non empty array on ForeachItemsAssignToEmptyArrayToAssignRector (#6390)
This commit is contained in:
parent
8a2b111d6a
commit
9e205fbc3e
@ -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;
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user