Completed
Pull Request — 3.x (#5138)
by Oleg
08:14
created
tests/Controller/CRUDControllerTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -3986,6 +3986,9 @@
 block discarded – undo
3986 3986
             ]);
3987 3987
     }
3988 3988
 
3989
+    /**
3990
+     * @param string $domain
3991
+     */
3989 3992
     private function expectTranslate(
3990 3993
         string $id,
3991 3994
         array $parameters = [],
Please login to merge, or discard this patch.
src/Object/Metadata.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -47,6 +47,8 @@
 block discarded – undo
47 47
 
48 48
     /**
49 49
      * @param array<string, mixed> $options
50
+     * @param string $description
51
+     * @param string $domain
50 52
      */
51 53
     public function __construct(
52 54
         string $title,
Please login to merge, or discard this patch.
src/Admin/BaseFieldDescription.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -441,6 +441,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Action/SetObjectFieldValueAction.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/Form/Widget/FormSonataNativeCollectionWidgetTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/Datagrid/DatagridMapperTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -292,6 +292,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Datagrid/ListMapperTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -286,6 +286,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
tests/Show/ShowMapperTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -501,6 +501,10 @@
 block discarded – undo
501 501
         $this->admin->setLabelTranslatorStrategy(new NoopLabelTranslatorStrategy());
502 502
     }
503 503
 
504
+    /**
505
+     * @param string $name
506
+     * @param string $label
507
+     */
504 508
     private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription
505 509
     {
506 510
         $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class);
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
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * render a list element from the FieldDescription.
166 166
      *
167
-     * @param object $object
167
+     * @param \stdClass $object
168 168
      * @param array  $params
169 169
      *
170 170
      * @return string
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * render a view element.
247 247
      *
248
-     * @param object $object
248
+     * @param \stdClass $object
249 249
      *
250 250
      * @return string
251 251
      */
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     /**
383 383
      * Get the identifiers as a string that is safe to use in a url.
384 384
      *
385
-     * @param object $model
385
+     * @param \stdClass $model
386 386
      *
387 387
      * @return string string representation of the id that is safe to use in a url
388 388
      */
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     }
405 405
 
406 406
     /**
407
-     * @return string|bool
407
+     * @return string|false
408 408
      */
409 409
     public function getXEditableType($type)
410 410
     {
Please login to merge, or discard this patch.