@@ -63,6 +63,9 @@ |
||
63 | 63 | $this->fixFieldDescription($admin, $fieldDescription); |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string|null $type |
|
68 | + */ |
|
66 | 69 | public function addField(FieldDescriptionCollection $list, ?string $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin): void |
67 | 70 | { |
68 | 71 | $this->buildField($type, $fieldDescription, $admin); |
@@ -47,6 +47,9 @@ |
||
47 | 47 | return new FieldDescriptionCollection(); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param null|string $type |
|
52 | + */ |
|
50 | 53 | public function addField(FieldDescriptionCollection $list, ?string $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin): void |
51 | 54 | { |
52 | 55 | if (null === $type) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * For the record, the $alias value is provided by the association method (and the entity join method) |
66 | 66 | * so the field value is not used here. |
67 | 67 | * |
68 | - * @param ProxyQueryInterface|QueryBuilder $queryBuilder |
|
68 | + * @param ProxyQueryInterface $queryBuilder |
|
69 | 69 | * @param string $alias |
70 | 70 | * @param mixed $data |
71 | 71 | */ |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
90 | - * @param ProxyQueryInterface|QueryBuilder $queryBuilder |
|
90 | + * @param ProxyQueryInterface $queryBuilder |
|
91 | 91 | * @param string $alias |
92 | 92 | * @param mixed $data |
93 | 93 | */ |
@@ -33,7 +33,6 @@ |
||
33 | 33 | use PHPUnit\Framework\MockObject\MockObject; |
34 | 34 | use PHPUnit\Framework\TestCase; |
35 | 35 | use Sonata\AdminBundle\Admin\FieldDescriptionInterface; |
36 | -use Sonata\AdminBundle\Datagrid\Datagrid; |
|
37 | 36 | use Sonata\AdminBundle\Datagrid\DatagridInterface; |
38 | 37 | use Sonata\AdminBundle\Exception\LockException; |
39 | 38 | use Sonata\AdminBundle\Exception\ModelManagerException; |