mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-12-15 08:19:13 -05:00
PHP 8.2 compatibility: Use of "self" in callables is deprecated
This commit is contained in:
parent
849c1c7cd1
commit
bff4d3a016
3 changed files with 5 additions and 5 deletions
|
|
@ -351,7 +351,7 @@ class Filesystem extends AbstractData
|
|||
$pastes = array();
|
||||
$firstLevel = array_filter(
|
||||
scandir(self::$_path),
|
||||
'self::_isFirstLevelDir'
|
||||
'PrivateBin\Data\Filesystem::_isFirstLevelDir'
|
||||
);
|
||||
if (count($firstLevel) > 0) {
|
||||
// try at most 10 times the $batchsize pastes before giving up
|
||||
|
|
@ -359,7 +359,7 @@ class Filesystem extends AbstractData
|
|||
$firstKey = array_rand($firstLevel);
|
||||
$secondLevel = array_filter(
|
||||
scandir(self::$_path . DIRECTORY_SEPARATOR . $firstLevel[$firstKey]),
|
||||
'self::_isSecondLevelDir'
|
||||
'PrivateBin\Data\Filesystem::_isSecondLevelDir'
|
||||
);
|
||||
|
||||
// skip this folder in the next checks if it is empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue