@@ -72,6 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param string $view The view name |
74 | 74 | * @param array<string, mixed> $parameters An array of parameters to pass to the view |
75 | + * @param Response $response |
|
75 | 76 | */ |
76 | 77 | public function renderWithExtraParams($view, array $parameters = [], ?Response $response = null): Response |
77 | 78 | { |
@@ -711,8 +712,8 @@ discard block |
||
711 | 712 | /** |
712 | 713 | * Compare history revisions of object. |
713 | 714 | * |
714 | - * @param int|string|null $baseRevision |
|
715 | - * @param int|string|null $compareRevision |
|
715 | + * @param null|integer $baseRevision |
|
716 | + * @param null|integer $compareRevision |
|
716 | 717 | * |
717 | 718 | * @throws AccessDeniedException If access is not granted |
718 | 719 | * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available |
@@ -1408,6 +1409,7 @@ discard block |
||
1408 | 1409 | |
1409 | 1410 | /** |
1410 | 1411 | * Sets the admin form theme to form view. Used for compatibility between Symfony versions. |
1412 | + * @param string[] $theme |
|
1411 | 1413 | */ |
1412 | 1414 | private function setFormTheme(FormView $formView, ?array $theme = null): void |
1413 | 1415 | { |
@@ -196,6 +196,11 @@ |
||
196 | 196 | return $id; |
197 | 197 | } |
198 | 198 | |
199 | + /** |
|
200 | + * @param string $id |
|
201 | + * @param integer $number |
|
202 | + * @param string $domain |
|
203 | + */ |
|
199 | 204 | public function transChoice($id, $number, array $parameters = [], ?string $domain = null, ?string $locale = null) |
200 | 205 | { |
201 | 206 | $this->addMessage($id, $domain); |
@@ -13,7 +13,6 @@ discard block |
||
13 | 13 | |
14 | 14 | namespace Sonata\AdminBundle\Tests\Controller; |
15 | 15 | |
16 | -use Doctrine\Common\Collections\ArrayCollection; |
|
17 | 16 | use PHPUnit\Framework\MockObject\MockObject; |
18 | 17 | use PHPUnit\Framework\TestCase; |
19 | 18 | use Psr\Log\LoggerInterface; |
@@ -32,7 +31,6 @@ discard block |
||
32 | 31 | use Sonata\AdminBundle\Model\ModelManagerInterface; |
33 | 32 | use Sonata\AdminBundle\Security\Acl\Permission\AdminPermissionMap; |
34 | 33 | use Sonata\AdminBundle\Security\Handler\AclSecurityHandler; |
35 | -use Sonata\AdminBundle\Templating\TemplateRegistry; |
|
36 | 34 | use Sonata\AdminBundle\Templating\TemplateRegistryInterface; |
37 | 35 | use Sonata\AdminBundle\Tests\Fixtures\Controller\BatchAdminController; |
38 | 36 | use Sonata\AdminBundle\Tests\Fixtures\Controller\PreCRUDController; |