mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Replace disallowed operators in src/utils/
This commit is contained in:
@@ -81,7 +81,7 @@ final class Filesystem{
|
||||
if(is_dir($dir)){
|
||||
$objects = Utils::assumeNotFalse(scandir($dir, SCANDIR_SORT_NONE), "scandir() shouldn't return false when is_dir() returns true");
|
||||
foreach($objects as $object){
|
||||
if($object !== "." and $object !== ".."){
|
||||
if($object !== "." && $object !== ".."){
|
||||
$fullObject = Path::join($dir, $object);
|
||||
if(is_dir($fullObject)){
|
||||
self::recursiveUnlink($fullObject);
|
||||
|
Reference in New Issue
Block a user