1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Applied ListToArrayDestructRector

This commit is contained in:
Bruce Weirdan 2022-01-05 23:29:18 +02:00
parent b8240e293a
commit 83f1d52528
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -164,7 +164,7 @@ class CustomTraverser extends NodeTraverser
}
if (!empty($doNodes)) {
while (list($i, $replace) = array_pop($doNodes)) {
while ([$i, $replace] = array_pop($doNodes)) {
array_splice($nodes, $i, 1, $replace);
}
}