mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +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
|
@ -207,9 +207,7 @@ JSON
|
|||
$this->em
|
||||
->expects($this->any())
|
||||
->method('persist')
|
||||
->with($this->callback(function ($persistedEntry) {
|
||||
return (bool) $persistedEntry->isArchived() && (bool) $persistedEntry->isStarred();
|
||||
}));
|
||||
->with($this->callback(fn ($persistedEntry) => (bool) $persistedEntry->isArchived() && (bool) $persistedEntry->isStarred()));
|
||||
|
||||
$entry = new Entry($this->user);
|
||||
|
||||
|
@ -299,9 +297,7 @@ JSON
|
|||
$this->em
|
||||
->expects($this->any())
|
||||
->method('persist')
|
||||
->with($this->callback(function ($persistedEntry) {
|
||||
return (bool) $persistedEntry->isArchived();
|
||||
}));
|
||||
->with($this->callback(fn ($persistedEntry) => (bool) $persistedEntry->isArchived()));
|
||||
|
||||
$entry = new Entry($this->user);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue