@@ -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 | * |
@@ -292,6 +292,10 @@ |
||
292 | 292 | $this->assertTrue($this->datagridMapper->has('baz')); |
293 | 293 | } |
294 | 294 | |
295 | + /** |
|
296 | + * @param string $name |
|
297 | + * @param string $label |
|
298 | + */ |
|
295 | 299 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
296 | 300 | { |
297 | 301 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |
@@ -286,6 +286,10 @@ |
||
286 | 286 | $this->assertTrue($this->listMapper->has('baz')); |
287 | 287 | } |
288 | 288 | |
289 | + /** |
|
290 | + * @param string $name |
|
291 | + * @param string $label |
|
292 | + */ |
|
289 | 293 | private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription |
290 | 294 | { |
291 | 295 | $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class); |