Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -20,6 +20,7 @@ abstract class Page extends BasePage implements HasSecondSubNav
public function getSecondSubNavigation(): array
{
/** @var \App\Models\User */
$user = auth()->user();
$items = [];
@ -99,7 +100,10 @@ protected static function getSiteFromRoute(): ?Site
}
if ($site) {
return Site::query()->find($site);
/** @var Site $site */
$site = Site::query()->findOrFail($site);
return $site;
}
return null;