1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-06-27 16:36:00 +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

@ -289,9 +289,7 @@ class EntryRepository extends ServiceEntityRepository
if ('metadata' === $detail) {
$fieldNames = $this->getClassMetadata()->getFieldNames();
$fields = array_filter($fieldNames, function ($k) {
return 'content' !== $k;
});
$fields = array_filter($fieldNames, fn ($k) => 'content' !== $k);
$qb->select(\sprintf('partial e.{%s}', implode(',', $fields)));
}