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:
parent
ce8ed589d5
commit
4168727f36
21 changed files with 31 additions and 75 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue