Completed
Pull Request — master (#4938)
by Andrey F.
03:47
created
tests/Controller/HelperControllerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -461,6 +461,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Admin/BaseFieldDescription.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -418,6 +418,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Twig/Extension/SonataAdminExtension.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
381 381
     }
382 382
 
383 383
     /**
384
-     * @return string|bool
384
+     * @return string|false
385 385
      */
386 386
     public function getXEditableType($type)
387 387
     {
Please login to merge, or discard this patch.