Replace deprecated calls to defaults() by ?? and ?: in src/
This commit is contained in:
@@ -132,7 +132,7 @@ class Filesystem implements IStorage
|
||||
|
||||
public static function saveOptions($data)
|
||||
{
|
||||
$storagepath = defaults($data, 'storagepath', '');
|
||||
$storagepath = $data['storagepath'] ?? '';
|
||||
if ($storagepath === '' || !is_dir($storagepath)) {
|
||||
return [
|
||||
'storagepath' => L10n::t('Enter a valid existing folder')
|
||||
|
||||
Reference in New Issue
Block a user