Completed
Pull Request — 3.x (#5536)
by Malte
26:39 queued 11s
created
src/Admin/FieldDescriptionCollection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-     * @return array
33
+     * @return FieldDescriptionInterface[]
34 34
      */
35 35
     public function getElements()
36 36
     {
Please login to merge, or discard this patch.
tests/Datagrid/PagerTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -639,6 +639,10 @@
 block discarded – undo
639 639
         $this->assertNull($this->pager->getQuery());
640 640
     }
641 641
 
642
+    /**
643
+     * @param Pager $obj
644
+     * @param string $name
645
+     */
642 646
     protected function callMethod($obj, $name, array $args = [])
643 647
     {
644 648
         $class = new \ReflectionClass($obj);
Please login to merge, or discard this patch.
src/Admin/Pool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
     }
296 296
 
297 297
     /**
298
-     * @return array
298
+     * @return string[]
299 299
      */
300 300
     public function getAdminServiceIds()
301 301
     {
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.
src/Admin/AbstractAdmin.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1024,6 +1024,7 @@  discard block
 block discarded – undo
1024 1024
 
1025 1025
     /**
1026 1026
      * NEXT_MAJOR: remove this method.
1027
+     * @param string $subClass
1027 1028
      */
1028 1029
     public function addSubClass($subClass)
1029 1030
     {
@@ -1146,6 +1147,10 @@  discard block
 block discarded – undo
1146 1147
         return $this->routeGenerator->hasAdminRoute($this, $name);
1147 1148
     }
1148 1149
 
1150
+    /**
1151
+     * @param string $name
1152
+     * @param string $adminCode
1153
+     */
1149 1154
     public function isCurrentRoute($name, $adminCode = null)
1150 1155
     {
1151 1156
         if (!$this->hasRequest()) {
@@ -2291,7 +2296,7 @@  discard block
 block discarded – undo
2291 2296
      *
2292 2297
      * @param string $context
2293 2298
      *
2294
-     * @return array
2299
+     * @return string[]
2295 2300
      */
2296 2301
     public function getPermissionsShow($context)
2297 2302
     {
@@ -2596,6 +2601,9 @@  discard block
 block discarded – undo
2596 2601
         return true;
2597 2602
     }
2598 2603
 
2604
+    /**
2605
+     * @param string $action
2606
+     */
2599 2607
     public function configureActionButtons($action, $object = null)
2600 2608
     {
2601 2609
         $list = [];
@@ -2847,6 +2855,7 @@  discard block
 block discarded – undo
2847 2855
     /**
2848 2856
      * NEXT_MAJOR: remove this method.
2849 2857
      *
2858
+     * @param string $action
2850 2859
      * @return mixed
2851 2860
      *
2852 2861
      * @deprecated Use configureTabMenu instead
Please login to merge, or discard this patch.
tests/Menu/Integration/BaseMenuTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
         $this->environment = new \Twig_Environment($loader, ['strict_variables' => true]);
40 40
     }
41 41
 
42
+    /**
43
+     * @return string
44
+     */
42 45
     abstract protected function getTemplate();
43 46
 
44 47
     protected function getTranslator()
Please login to merge, or discard this patch.
tests/Fixtures/Admin/PostAdmin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 {
20 20
     protected $metadataClass = null;
21 21
 
22
+    /**
23
+     * @param string $associationMapping
24
+     */
22 25
     public function setParentAssociationMapping($associationMapping): void
23 26
     {
24 27
         $this->parentAssociationMapping = $associationMapping;
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
@@ -473,6 +473,9 @@
 block discarded – undo
473 473
         return $object->{$fieldName};
474 474
     }
475 475
 
476
+    /**
477
+     * @param string $fieldName
478
+     */
476 479
     private function cacheFieldGetter($object, ?string $fieldName, string $method, ?string $getter = null)
477 480
     {
478 481
         $getterKey = $this->getFieldGetterKey($object, $fieldName);
Please login to merge, or discard this patch.
tests/Action/RetrieveAutocompleteItemsActionTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -298,6 +298,9 @@
 block discarded – undo
298 298
         $formConfig->getAttribute('target_admin_access_action')->willReturn('list');
299 299
     }
300 300
 
301
+    /**
302
+     * @param string $field
303
+     */
301 304
     private function configureFormConfigComplexPropertyArray($field): void
302 305
     {
303 306
         $form = $this->prophesize(Form::class);
Please login to merge, or discard this patch.