mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
Use $arr[] = 'x' instead of array_push
This commit is contained in:
@ -735,7 +735,7 @@ EOD;
|
||||
if ($pathPart === '..') {
|
||||
array_pop($realPathParts);
|
||||
} else {
|
||||
array_push($realPathParts, $pathPart);
|
||||
$realPathParts[] = $pathPart;
|
||||
}
|
||||
}
|
||||
return implode(DIRECTORY_SEPARATOR, $realPathParts);
|
||||
|
Reference in New Issue
Block a user