@@ -298,6 +298,9 @@ |
||
298 | 298 | $formConfig->getAttribute('target_admin_access_action')->willReturn('list'); |
299 | 299 | } |
300 | 300 | |
301 | + /** |
|
302 | + * @param string $field |
|
303 | + */ |
|
301 | 304 | private function configureFormConfigComplexPropertyArray($field): void |
302 | 305 | { |
303 | 306 | $form = $this->prophesize(Form::class); |
@@ -2486,6 +2486,9 @@ |
||
2486 | 2486 | return htmlspecialchars(http_build_query($url, '', '&', PHP_QUERY_RFC3986)); |
2487 | 2487 | } |
2488 | 2488 | |
2489 | + /** |
|
2490 | + * @param string $privateMethod |
|
2491 | + */ |
|
2489 | 2492 | private function getMethodAsPublic($privateMethod): \ReflectionMethod |
2490 | 2493 | { |
2491 | 2494 | $reflection = new \ReflectionMethod('Sonata\AdminBundle\Twig\Extension\SonataAdminExtension', $privateMethod); |
@@ -441,6 +441,9 @@ |
||
441 | 441 | return $object->{$fieldName}; |
442 | 442 | } |
443 | 443 | |
444 | + /** |
|
445 | + * @param string $fieldName |
|
446 | + */ |
|
444 | 447 | private function cacheFieldGetter($object, ?string $fieldName, string $method, ?string $getter = null): void |
445 | 448 | { |
446 | 449 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -40,6 +40,9 @@ |
||
40 | 40 | */ |
41 | 41 | private $validator; |
42 | 42 | |
43 | + /** |
|
44 | + * @param ValidatorInterface $validator |
|
45 | + */ |
|
43 | 46 | public function __construct(Environment $twig, Pool $pool, $validator) |
44 | 47 | { |
45 | 48 | // NEXT_MAJOR: Move ValidatorInterface check to method signature |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * @param $type |
52 | 52 | * |
53 | - * @return callable |
|
53 | + * @return \Closure |
|
54 | 54 | */ |
55 | 55 | public function getConfigureEventClosure($type) |
56 | 56 | { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * @param $type |
72 | 72 | * |
73 | - * @return callable |
|
73 | + * @return \Closure |
|
74 | 74 | */ |
75 | 75 | public function getConfigurePersistenceClosure($type) |
76 | 76 | { |
@@ -56,6 +56,9 @@ |
||
56 | 56 | ); |
57 | 57 | } |
58 | 58 | |
59 | + /** |
|
60 | + * @return string |
|
61 | + */ |
|
59 | 62 | protected function getParentClass() |
60 | 63 | { |
61 | 64 | if (class_exists(RangeType::class)) { |
@@ -68,6 +68,9 @@ |
||
68 | 68 | return $extensions; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @return string |
|
73 | + */ |
|
71 | 74 | protected function getChoiceClass() |
72 | 75 | { |
73 | 76 | return CollectionType::class; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * @param mixed $data |
43 | 43 | * |
44 | - * @return ItemInterface |
|
44 | + * @return \PHPUnit\Framework\MockObject\MockObject |
|
45 | 45 | */ |
46 | 46 | protected function createItem($data) |
47 | 47 | { |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param mixed $name |
42 | - * @param mixed $type |
|
42 | + * @param null|string $type |
|
43 | 43 | * |
44 | 44 | * @throws \RuntimeException |
45 | 45 | * |