Migrate to stable saschaegerer/phpstan-typo3 package

This commit is contained in:
Daniel Siepmann 2024-05-24 12:06:54 +02:00
parent 24e36f0882
commit 6f7f85b92c

View file

@ -47,10 +47,7 @@ class PageLayoutHeader
public function __invoke(ModifyPageLayoutContentEvent $event): void
{
$request = $event->getRequest();
$pageinfo = BackendUtility::readPageAccess(
(int) ($request->getParsedBody()['id'] ?? $request->getQueryParams()['id'] ?? 0),
''
);
$pageinfo = BackendUtility::readPageAccess((int) ($request->getQueryParams()['id'] ?? 0), '');
// TODO: Check whether two levels up is uid 2, which holds all blog posts
// To prevent rendering on non blog posts