diff --git a/src/Filesystem/File.php b/src/Filesystem/File.php index 763e94bef2a..786106c0831 100644 --- a/src/Filesystem/File.php +++ b/src/Filesystem/File.php @@ -365,7 +365,7 @@ protected static function _basename($path, $ext = null) { //check for multibyte string and use basename() if not found if (mb_strlen($path) === strlen($path)) { - return ($ext===null)? basename($path) : basename($path, $ext); + return ($ext === null)? basename($path) : basename($path, $ext); } $splInfo = new SplFileInfo($path); @@ -379,7 +379,6 @@ protected static function _basename($path, $ext = null) // basename of '/etc/.d' is '.d' not '' return ($new === '')? $name : $new; - } /**