@@ -948,6 +948,7 @@ discard block |
||
948 | 948 | |
949 | 949 | /** |
950 | 950 | * NEXT_MAJOR: remove this method. |
951 | + * @param string $subClass |
|
951 | 952 | */ |
952 | 953 | public function addSubClass($subClass): void |
953 | 954 | { |
@@ -2600,6 +2601,9 @@ discard block |
||
2600 | 2601 | { |
2601 | 2602 | } |
2602 | 2603 | |
2604 | + /** |
|
2605 | + * @param string $action |
|
2606 | + */ |
|
2603 | 2607 | protected function configureActionButtons($buttonList, $action, $object = null) |
2604 | 2608 | { |
2605 | 2609 | return $buttonList; |
@@ -2619,6 +2623,7 @@ discard block |
||
2619 | 2623 | /** |
2620 | 2624 | * NEXT_MAJOR: remove this method. |
2621 | 2625 | * |
2626 | + * @param string $action |
|
2622 | 2627 | * @return mixed |
2623 | 2628 | * |
2624 | 2629 | * @deprecated Use configureTabMenu instead |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Returns the next object. |
216 | 216 | * |
217 | - * @return mixed|null |
|
217 | + * @return null|object |
|
218 | 218 | */ |
219 | 219 | public function getNext() |
220 | 220 | { |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | /** |
229 | 229 | * Returns the previous object. |
230 | 230 | * |
231 | - * @return mixed|null |
|
231 | + * @return null|object |
|
232 | 232 | */ |
233 | 233 | public function getPrevious() |
234 | 234 | { |
@@ -418,7 +418,7 @@ discard block |
||
418 | 418 | * Returns a parameter. |
419 | 419 | * |
420 | 420 | * @param string $name |
421 | - * @param mixed $default |
|
421 | + * @param null|string $default |
|
422 | 422 | * |
423 | 423 | * @return mixed |
424 | 424 | */ |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | * Sets a parameter. |
443 | 443 | * |
444 | 444 | * @param string $name |
445 | - * @param mixed $value |
|
445 | + * @param string $value |
|
446 | 446 | */ |
447 | 447 | public function setParameter($name, $value): void |
448 | 448 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | /** |
161 | 161 | * render a list element from the FieldDescription. |
162 | 162 | * |
163 | - * @param mixed $object |
|
163 | + * @param \stdClass $object |
|
164 | 164 | * @param array $params |
165 | 165 | */ |
166 | 166 | public function renderListElement( |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | /** |
189 | 189 | * render a view element. |
190 | 190 | * |
191 | - * @param mixed $object |
|
191 | + * @param \stdClass $object |
|
192 | 192 | */ |
193 | 193 | public function renderViewElement( |
194 | 194 | Environment $environment, |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | /** |
322 | 322 | * Get the identifiers as a string that is safe to use in a url. |
323 | 323 | * |
324 | - * @param object $model |
|
324 | + * @param \stdClass $model |
|
325 | 325 | * |
326 | 326 | * @return string string representation of the id that is safe to use in a url |
327 | 327 | */ |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | } |
344 | 344 | |
345 | 345 | /** |
346 | - * @return string|bool |
|
346 | + * @return string|false |
|
347 | 347 | */ |
348 | 348 | public function getXEditableType($type) |
349 | 349 | { |
@@ -42,6 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | /** |
44 | 44 | * @param ContainerInterface|Pool $adminPool |
45 | + * @param string $mosaicBackground |
|
45 | 46 | */ |
46 | 47 | public function __construct($adminPool, ?string $mosaicBackground = null) |
47 | 48 | { |
@@ -75,7 +76,7 @@ discard block |
||
75 | 76 | /** |
76 | 77 | * @param string $code |
77 | 78 | * @param string $action |
78 | - * @param array $parameters |
|
79 | + * @param string[] $parameters |
|
79 | 80 | * @param int $absolute |
80 | 81 | */ |
81 | 82 | public function url($code, $action, $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH): string |
@@ -88,8 +89,8 @@ discard block |
||
88 | 89 | /** |
89 | 90 | * @param string $code |
90 | 91 | * @param string $action |
91 | - * @param mixed $object |
|
92 | - * @param array $parameters |
|
92 | + * @param string $object |
|
93 | + * @param string[] $parameters |
|
93 | 94 | * @param int $absolute |
94 | 95 | */ |
95 | 96 | public function objectUrl($code, $action, $object, $parameters = [], $absolute = UrlGeneratorInterface::ABSOLUTE_PATH): string |
@@ -104,6 +105,10 @@ discard block |
||
104 | 105 | return $this->mosaicBackground; |
105 | 106 | } |
106 | 107 | |
108 | + /** |
|
109 | + * @param string $code |
|
110 | + * @param string $action |
|
111 | + */ |
|
107 | 112 | private function getCodeAction($code, $action): array |
108 | 113 | { |
109 | 114 | if ($pipe = strpos($code, '|')) { |