Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
eerison committed Aug 22, 2022
1 parent 695d2cb commit 943240e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Admin/SharedBlockAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ protected function generateBaseRouteName(bool $isChildAdmin = false): string
return sprintf('%s_%s', parent::generateBaseRouteName($isChildAdmin), 'shared');
}

/**
* @param ProxyQueryInterface<object> $query
*/
protected function configureQuery(ProxyQueryInterface $query): ProxyQueryInterface
{
\assert($query instanceof ProxyQuery);
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/PageAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ public static function getSubscribedServices(): array
}

/**
* @param ProxyQueryInterface<object> $query
*
* @throws AccessDeniedException
*/
public function batchActionSnapshot(ProxyQueryInterface $query): RedirectResponse
Expand Down
2 changes: 2 additions & 0 deletions src/Controller/SnapshotAdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ public static function getSubscribedServices(): array
}

/**
* @param ProxyQueryInterface<object> $query
*
* @throws AccessDeniedException
*/
public function batchActionToggleEnabled(ProxyQueryInterface $query): RedirectResponse
Expand Down
1 change: 1 addition & 0 deletions tests/Page/TemplateManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 943240e

Please sign in to comment.