diff --git a/src/Admin/SharedBlockAdmin.php b/src/Admin/SharedBlockAdmin.php index e412b9d48..180fabb85 100644 --- a/src/Admin/SharedBlockAdmin.php +++ b/src/Admin/SharedBlockAdmin.php @@ -38,6 +38,10 @@ protected function generateBaseRouteName(bool $isChildAdmin = false): string return sprintf('%s_%s', parent::generateBaseRouteName($isChildAdmin), 'shared'); } + /** + * @param ProxyQueryInterface $query + * @return ProxyQueryInterface + */ protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface { \assert($query instanceof ProxyQuery); diff --git a/src/Controller/PageAdminController.php b/src/Controller/PageAdminController.php index 3dd9c2f0d..1d1dc2ce3 100644 --- a/src/Controller/PageAdminController.php +++ b/src/Controller/PageAdminController.php @@ -54,6 +54,8 @@ public static function getSubscribedServices(): array } /** + * @param ProxyQueryInterface $query + * * @throws AccessDeniedException */ public function batchActionSnapshot(ProxyQueryInterface $query): RedirectResponse diff --git a/src/Controller/SnapshotAdminController.php b/src/Controller/SnapshotAdminController.php index 231564920..519a2e9c2 100644 --- a/src/Controller/SnapshotAdminController.php +++ b/src/Controller/SnapshotAdminController.php @@ -35,6 +35,8 @@ public static function getSubscribedServices(): array } /** + * @param ProxyQueryInterface $query + * * @throws AccessDeniedException */ public function batchActionToggleEnabled(ProxyQueryInterface $query): RedirectResponse diff --git a/tests/Page/TemplateManagerTest.php b/tests/Page/TemplateManagerTest.php index 34039bb79..c394ec662 100644 --- a/tests/Page/TemplateManagerTest.php +++ b/tests/Page/TemplateManagerTest.php @@ -169,6 +169,7 @@ public function testTemplateShowingBreadcrumbIntoThePage(): void $container->set('sonata.page.cms.snapshot', $cmsSnapshotManagerMock); $twig = $container->get('twig'); + \assert($twig instanceof Environment); $manager = new TemplateManager($twig, []); $response = $manager->renderResponse('test');