PHPStan level 3

This commit is contained in:
Yassine Guedidi
2023-08-08 02:27:21 +01:00
parent 85065b509f
commit 0f17a8cf8a
25 changed files with 86 additions and 74 deletions

View File

@ -145,7 +145,7 @@ class WallabagExtension extends AbstractExtension implements GlobalsInterface
$user = $this->tokenStorage->getToken() ? $this->tokenStorage->getToken()->getUser() : null;
if (!$user instanceof User) {
return 0;
return '';
}
$query = $this->entryRepository->getBuilderForArchiveByUser($user->getId())