Completed
Pull Request — master (#6093)
by Mathieu
07:34
created
src/Form/ChoiceList/ModelChoiceLoader.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -65,6 +65,7 @@
 block discarded – undo
65 65
      * @param string|null $property
66 66
      * @param mixed|null  $query
67 67
      * @param array       $choices
68
+     * @param PropertyAccessorInterface $propertyAccessor
68 69
      */
69 70
     public function __construct(
70 71
         ModelManagerInterface $modelManager,
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
@@ -586,6 +586,10 @@
 block discarded – undo
586 586
         $this->admin->setShowBuilder(new ShowBuilder());
587 587
     }
588 588
 
589
+    /**
590
+     * @param string $name
591
+     * @param string $label
592
+     */
589 593
     private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription
590 594
     {
591 595
         $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class);
Please login to merge, or discard this patch.
src/Twig/Extension/SonataAdminExtension.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     /**
183 183
      * render a view element.
184 184
      *
185
-     * @param object $object
185
+     * @param \stdClass $object
186 186
      *
187 187
      * @return string
188 188
      */
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
     /**
222 222
      * render a compared view element.
223 223
      *
224
-     * @param mixed $baseObject
225
-     * @param mixed $compareObject
224
+     * @param \stdClass $baseObject
225
+     * @param \stdClass $compareObject
226 226
      *
227 227
      * @return string
228 228
      */
@@ -343,7 +343,8 @@  discard block
 block discarded – undo
343 343
     /**
344 344
      * Get the identifiers as a string that is safe to use in a url.
345 345
      *
346
-     * @param object $model
346
+     * @param \stdClass $model
347
+     * @param AdminInterface $admin
347 348
      *
348 349
      * @return string string representation of the id that is safe to use in a url
349 350
      */
@@ -365,7 +366,7 @@  discard block
 block discarded – undo
365 366
     }
366 367
 
367 368
     /**
368
-     * @return string|bool
369
+     * @return string|false
369 370
      */
370 371
     public function getXEditableType($type)
371 372
     {
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
@@ -414,6 +414,10 @@
 block discarded – undo
414 414
         );
415 415
     }
416 416
 
417
+    /**
418
+     * @param string $name
419
+     * @param string $label
420
+     */
417 421
     private function getFieldDescriptionMock(?string $name = null, ?string $label = null): BaseFieldDescription
418 422
     {
419 423
         $fieldDescription = $this->getMockForAbstractClass(BaseFieldDescription::class);
Please login to merge, or discard this patch.
src/Security/Handler/AclSecurityHandler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -182,6 +182,9 @@
 block discarded – undo
182 182
         return $acls;
183 183
     }
184 184
 
185
+    /**
186
+     * @param UserSecurityIdentity $securityIdentity
187
+     */
185 188
     public function addObjectOwner(AclInterface $acl, ?UserSecurityIdentity $securityIdentity = null): void
186 189
     {
187 190
         if (!$acl instanceof MutableAclInterface) {
Please login to merge, or discard this patch.
src/Admin/AbstractAdmin.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -1236,6 +1236,9 @@  discard block
 block discarded – undo
1236 1236
         return $this->baseControllerName;
1237 1237
     }
1238 1238
 
1239
+    /**
1240
+     * @param string $label
1241
+     */
1239 1242
     public function setLabel(?string $label): void
1240 1243
     {
1241 1244
         $this->label = $label;
@@ -1877,6 +1880,9 @@  discard block
 block discarded – undo
1877 1880
         return $this->managerType;
1878 1881
     }
1879 1882
 
1883
+    /**
1884
+     * @param string $type
1885
+     */
1880 1886
     public function setManagerType(?string $type): void
1881 1887
     {
1882 1888
         $this->managerType = $type;
@@ -2311,6 +2317,7 @@  discard block
 block discarded – undo
2311 2317
 
2312 2318
     /**
2313 2319
      * {@inheritdoc}
2320
+     * @param boolean $isShown
2314 2321
      */
2315 2322
     final public function showMosaicButton($isShown): void
2316 2323
     {
Please login to merge, or discard this patch.
src/Route/RouteCollection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
         $this->baseControllerName = $baseControllerName;
63 63
     }
64 64
 
65
+    /**
66
+     * @param string $pattern
67
+     */
65 68
     public function add(
66 69
         string $name,
67 70
         ?string $pattern = null,
Please login to merge, or discard this patch.
tests/Fixtures/Admin/CommentAdmin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
 
19 19
 class CommentAdmin extends AbstractAdmin
20 20
 {
21
+    /**
22
+     * @param string $label
23
+     */
21 24
     public function setClassnameLabel($label): void
22 25
     {
23 26
         $this->classnameLabel = $label;
Please login to merge, or discard this patch.
src/Controller/CRUDController.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -188,6 +188,7 @@  discard block
 block discarded – undo
188 188
      *
189 189
      * @param string               $view       The view name
190 190
      * @param array<string, mixed> $parameters An array of parameters to pass to the view
191
+     * @param Response $response
191 192
      */
192 193
     public function renderWithExtraParams($view, array $parameters = [], ?Response $response = null): Response
193 194
     {
@@ -827,8 +828,8 @@  discard block
 block discarded – undo
827 828
     /**
828 829
      * Compare history revisions of object.
829 830
      *
830
-     * @param int|string|null $baseRevision
831
-     * @param int|string|null $compareRevision
831
+     * @param null|integer $baseRevision
832
+     * @param null|integer $compareRevision
832 833
      *
833 834
      * @throws AccessDeniedException If access is not granted
834 835
      * @throws NotFoundHttpException If the object or revision does not exist or the audit reader is not available
@@ -1008,6 +1009,9 @@  discard block
 block discarded – undo
1008 1009
         return $this->requestStack->getCurrentRequest();
1009 1010
     }
1010 1011
 
1012
+    /**
1013
+     * @param string $message
1014
+     */
1011 1015
     protected function addFlash(string $type, $message): void
1012 1016
     {
1013 1017
         if ($this->session instanceof Session) {
@@ -1492,6 +1496,7 @@  discard block
 block discarded – undo
1492 1496
 
1493 1497
     /**
1494 1498
      * Sets the admin form theme to form view. Used for compatibility between Symfony versions.
1499
+     * @param string[] $theme
1495 1500
      */
1496 1501
     private function setFormTheme(FormView $formView, ?array $theme = null): void
1497 1502
     {
Please login to merge, or discard this patch.