@@ -461,6 +461,9 @@ |
||
461 | 461 | $this->assertSame('{"status":"OK","more":false,"items":[{"id":123,"label":"FOO"}]}', $response->getContent()); |
462 | 462 | } |
463 | 463 | |
464 | + /** |
|
465 | + * @param string $field |
|
466 | + */ |
|
464 | 467 | private function configureFormConfig($field, $disabled = false): void |
465 | 468 | { |
466 | 469 | $form = $this->prophesize(Form::class); |
@@ -418,6 +418,9 @@ discard block |
||
418 | 418 | return implode('-', $components); |
419 | 419 | } |
420 | 420 | |
421 | + /** |
|
422 | + * @param string $fieldName |
|
423 | + */ |
|
421 | 424 | private function hasCachedFieldGetter($object, $fieldName): bool |
422 | 425 | { |
423 | 426 | return isset( |
@@ -425,6 +428,9 @@ discard block |
||
425 | 428 | ); |
426 | 429 | } |
427 | 430 | |
431 | + /** |
|
432 | + * @param string $fieldName |
|
433 | + */ |
|
428 | 434 | private function callCachedGetter($object, $fieldName, array $parameters = []) |
429 | 435 | { |
430 | 436 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -443,6 +449,10 @@ discard block |
||
443 | 449 | return $object->{$fieldName}; |
444 | 450 | } |
445 | 451 | |
452 | + /** |
|
453 | + * @param string $fieldName |
|
454 | + * @param string $method |
|
455 | + */ |
|
446 | 456 | private function cacheFieldGetter($object, $fieldName, $method, $getter = null): void |
447 | 457 | { |
448 | 458 | $getterKey = $this->getFieldGetterKey($object, $fieldName); |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * render a list element from the FieldDescription. |
128 | 128 | * |
129 | - * @param mixed $object |
|
129 | + * @param \stdClass $object |
|
130 | 130 | * @param array $params |
131 | 131 | * |
132 | 132 | * @return string |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | /** |
223 | 223 | * render a view element. |
224 | 224 | * |
225 | - * @param mixed $object |
|
225 | + * @param \stdClass $object |
|
226 | 226 | * |
227 | 227 | * @return string |
228 | 228 | */ |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | /** |
360 | 360 | * Get the identifiers as a string that is safe to use in a url. |
361 | 361 | * |
362 | - * @param object $model |
|
362 | + * @param \stdClass $model |
|
363 | 363 | * |
364 | 364 | * @return string string representation of the id that is safe to use in a url |
365 | 365 | */ |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | } |
382 | 382 | |
383 | 383 | /** |
384 | - * @return string|bool |
|
384 | + * @return string|false |
|
385 | 385 | */ |
386 | 386 | public function getXEditableType($type) |
387 | 387 | { |
@@ -22,7 +22,6 @@ |
||
22 | 22 | use Symfony\Component\Translation\TranslatorInterface; |
23 | 23 | use Twig\Environment; |
24 | 24 | use Twig\Extension\AbstractExtension; |
25 | -use Twig\Template; |
|
26 | 25 | use Twig\TemplateWrapper; |
27 | 26 | use Twig\TwigFilter; |
28 | 27 | use Twig\TwigFunction; |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use Sonata\AdminBundle\Block\AdminSearchBlockService; |
19 | 19 | use Sonata\AdminBundle\Search\SearchHandler; |
20 | 20 | use Sonata\BlockBundle\Test\AbstractBlockServiceTestCase; |
21 | -use Sonata\BlockBundle\Test\FakeTemplating; |
|
22 | 21 | use Twig\Environment; |
23 | 22 | |
24 | 23 | /** |