Completed
Pull Request — 3.x (#4840)
by Grégoire
03:44
created
src/Admin/AbstractAdmin.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1079,6 +1079,10 @@  discard block
 block discarded – undo
1079 1079
         return $this->routeGenerator->hasAdminRoute($this, $name);
1080 1080
     }
1081 1081
 
1082
+    /**
1083
+     * @param string $name
1084
+     * @param string $adminCode
1085
+     */
1082 1086
     public function isCurrentRoute($name, $adminCode = null)
1083 1087
     {
1084 1088
         if (!$this->hasRequest()) {
@@ -2173,7 +2177,7 @@  discard block
 block discarded – undo
2173 2177
      *
2174 2178
      * @param string $context
2175 2179
      *
2176
-     * @return array
2180
+     * @return string[]
2177 2181
      */
2178 2182
     public function getPermissionsShow($context)
2179 2183
     {
@@ -2478,6 +2482,9 @@  discard block
 block discarded – undo
2478 2482
         return true;
2479 2483
     }
2480 2484
 
2485
+    /**
2486
+     * @param string $action
2487
+     */
2481 2488
     public function configureActionButtons($action, $object = null)
2482 2489
     {
2483 2490
         $list = [];
@@ -2608,7 +2615,6 @@  discard block
 block discarded – undo
2608 2615
     }
2609 2616
 
2610 2617
     /**
2611
-     * @param FormMapper $form
2612 2618
      */
2613 2619
     final public function getSearchResultLink($object)
2614 2620
     {
@@ -2707,6 +2713,7 @@  discard block
 block discarded – undo
2707 2713
     /**
2708 2714
      * NEXT_MAJOR: remove this method.
2709 2715
      *
2716
+     * @param string $action
2710 2717
      * @return mixed
2711 2718
      *
2712 2719
      * @deprecated Use configureTabMenu instead
Please login to merge, or discard this patch.
src/Admin/Pool.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
     }
296 296
 
297 297
     /**
298
-     * @return array
298
+     * @return string[]
299 299
      */
300 300
     public function getAdminServiceIds()
301 301
     {
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
     }
322 322
 
323 323
     /**
324
-     * @return array
324
+     * @return string[]
325 325
      */
326 326
     public function getTemplates()
327 327
     {
Please login to merge, or discard this patch.
src/Datagrid/Pager.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
      * Returns a parameter.
433 433
      *
434 434
      * @param string $name
435
-     * @param mixed  $default
435
+     * @param null|string  $default
436 436
      *
437 437
      * @return mixed
438 438
      */
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      * Sets a parameter.
458 458
      *
459 459
      * @param string $name
460
-     * @param mixed  $value
460
+     * @param string  $value
461 461
      */
462 462
     public function setParameter($name, $value)
463 463
     {
Please login to merge, or discard this patch.
src/Form/ChoiceList/ModelChoiceList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
      * @param string            $class
102 102
      * @param string|null       $property
103 103
      * @param QueryBuilder|null $query
104
-     * @param array             $choices
104
+     * @param integer[]             $choices
105 105
      */
106 106
     public function __construct(
107 107
         ModelManagerInterface $modelManager,
Please login to merge, or discard this patch.
src/Generator/AdminGenerator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     private $file;
38 38
 
39 39
     /**
40
-     * @param array|string $skeletonDirectories
40
+     * @param string $skeletonDirectories
41 41
      */
42 42
     public function __construct(ModelManagerInterface $modelManager, $skeletonDirectories)
43 43
     {
Please login to merge, or discard this patch.
src/Twig/Extension/SonataAdminExtension.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * render a list element from the FieldDescription.
119 119
      *
120
-     * @param mixed $object
120
+     * @param \stdClass $object
121 121
      * @param array $params
122 122
      *
123 123
      * @return string
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     /**
214 214
      * render a view element.
215 215
      *
216
-     * @param mixed $object
216
+     * @param \stdClass $object
217 217
      *
218 218
      * @return string
219 219
      */
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     /**
351 351
      * Get the identifiers as a string that is safe to use in a url.
352 352
      *
353
-     * @param object $model
353
+     * @param \stdClass $model
354 354
      *
355 355
      * @return string string representation of the id that is safe to use in a url
356 356
      */
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     }
373 373
 
374 374
     /**
375
-     * @return string|bool
375
+     * @return string|false
376 376
      */
377 377
     public function getXEditableType($type)
378 378
     {
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      *
427 427
      * @param string $defaultTemplate
428 428
      *
429
-     * @return \Twig_TemplateInterface
429
+     * @return \Twig_Template
430 430
      */
431 431
     protected function getTemplate(
432 432
         FieldDescriptionInterface $fieldDescription,
Please login to merge, or discard this patch.