Use $arr[] = 'x' instead of array_push

This commit is contained in:
Alexander Makarov
2016-02-16 14:35:15 +03:00
parent 4bc7c51180
commit bf3d8fe40f

View File

@ -735,7 +735,7 @@ EOD;
if ($pathPart === '..') { if ($pathPart === '..') {
array_pop($realPathParts); array_pop($realPathParts);
} else { } else {
array_push($realPathParts, $pathPart); $realPathParts[] = $pathPart;
} }
} }
return implode(DIRECTORY_SEPARATOR, $realPathParts); return implode(DIRECTORY_SEPARATOR, $realPathParts);