Skip to content

Commit

Permalink
Varien_Directory_Collection::getLastDir(): "$this" can no longer be u…
Browse files Browse the repository at this point in the history
…sed in a plain function or method, since PHP 7.1 (#3823)
  • Loading branch information
fballiano authored Mar 2, 2024
1 parent ac50a6a commit 4caaafe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Varien/Directory/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ public function lastDir()
*/
public static function getLastDir($path)
{
if ($path == '') {
$path = $this->getPath();
}
$last = strrpos($path, "/");
return substr($path, $last + 1);
}
Expand Down

0 comments on commit 4caaafe

Please # to comment.