Skip to content

Commit bf3d8fe

Browse files
committed
Use $arr[] = 'x' instead of array_push
1 parent 4bc7c51 commit bf3d8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/console/controllers/AssetController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ private function findRealPath($path)
735735
if ($pathPart === '..') {
736736
array_pop($realPathParts);
737737
} else {
738-
array_push($realPathParts, $pathPart);
738+
$realPathParts[] = $pathPart;
739739
}
740740
}
741741
return implode(DIRECTORY_SEPARATOR, $realPathParts);

0 commit comments

Comments
 (0)