Skip to content

Commit 9baa998

Browse files
committed
convert an array_splice to array_merge for clarity
1 parent e0152a7 commit 9baa998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tokenizers/PHP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3181,7 +3181,7 @@ private function parsePhpAttribute(array &$tokens, $stackPtr)
31813181
return null;
31823182
}
31833183

3184-
array_splice($subTokens, count($subTokens), 0, array_slice($tokens, ($stackPtr + 1), ($bracketCloser - $stackPtr)));
3184+
$subTokens = array_merge($subTokens, array_slice($tokens, ($stackPtr + 1), ($bracketCloser - $stackPtr)));
31853185
array_splice($tokens, ($stackPtr + 1), ($bracketCloser - $stackPtr));
31863186
}
31873187

0 commit comments

Comments
 (0)