mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
Use $arr[] = 'x' instead of array_push
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user