1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

Modernize to PHP 7.4

This commit is contained in:
Yassine Guedidi 2025-04-05 13:20:44 +02:00
parent ce8ed589d5
commit 4168727f36
21 changed files with 31 additions and 75 deletions

View file

@ -132,9 +132,7 @@ class EntryRestController extends WallabagRestController
}
if (false === $returnId) {
$results = array_map(function ($v) {
return null !== $v;
}, $results);
$results = array_map(fn ($v) => null !== $v, $results);
}
$results = $this->replaceUrlHashes($results, $urlHashMap);

View file

@ -367,9 +367,7 @@ class ConfigController extends AbstractController
$backupCodes = (new BackupCodes())->toArray();
$backupCodesHashed = array_map(
function ($backupCode) {
return password_hash($backupCode, \PASSWORD_DEFAULT);
},
fn ($backupCode) => password_hash($backupCode, \PASSWORD_DEFAULT),
$backupCodes
);