mirror of
https://github.com/wallabag/wallabag.git
synced 2025-06-27 16:36:00 +00:00
PHPStan level 5
This commit is contained in:
parent
3ef7064ada
commit
36eb513e1b
22 changed files with 60 additions and 47 deletions
|
@ -102,7 +102,7 @@ class EntryController extends AbstractController
|
|||
if (isset($values['entry-checkbox'])) {
|
||||
foreach ($values['entry-checkbox'] as $id) {
|
||||
/** @var Entry * */
|
||||
$entry = $this->entryRepository->findById((int) $id)[0];
|
||||
$entry = $this->entryRepository->findById([(int) $id])[0];
|
||||
|
||||
if (!$this->security->isGranted('EDIT', $entry)) {
|
||||
throw $this->createAccessDeniedException('You can not access this entry.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue