Completed
Push — master ( 46c3a0...a94e83 )
by Grégoire
13s queued 11s
created
tests/Controller/HelperControllerTest.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.
tests/Twig/Extension/SonataAdminExtensionTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -2486,6 +2486,9 @@
 block discarded – undo
2486 2486
         return htmlspecialchars(http_build_query($url, '', '&', PHP_QUERY_RFC3986));
2487 2487
     }
2488 2488
 
2489
+    /**
2490
+     * @param string $privateMethod
2491
+     */
2489 2492
     private function getMethodAsPublic($privateMethod): \ReflectionMethod
2490 2493
     {
2491 2494
         $reflection = new \ReflectionMethod('Sonata\AdminBundle\Twig\Extension\SonataAdminExtension', $privateMethod);
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/Event/AdminEventExtensionTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @param $type
52 52
      *
53
-     * @return callable
53
+     * @return \Closure
54 54
      */
55 55
     public function getConfigureEventClosure($type)
56 56
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * @param $type
72 72
      *
73
-     * @return callable
73
+     * @return \Closure
74 74
      */
75 75
     public function getConfigurePersistenceClosure($type)
76 76
     {
Please login to merge, or discard this patch.
tests/Form/Widget/FormSonataFilterChoiceWidgetTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
         );
57 57
     }
58 58
 
59
+    /**
60
+     * @return string
61
+     */
59 62
     protected function getParentClass()
60 63
     {
61 64
         if (class_exists(RangeType::class)) {
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/Menu/Matcher/Voter/ActiveVoterTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     /**
42 42
      * @param mixed $data
43 43
      *
44
-     * @return ItemInterface
44
+     * @return \PHPUnit\Framework\MockObject\MockObject
45 45
      */
46 46
     protected function createItem($data)
47 47
     {
Please login to merge, or discard this patch.
src/Show/ShowMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @param mixed $name
42
-     * @param mixed $type
42
+     * @param null|string $type
43 43
      *
44 44
      * @throws \RuntimeException
45 45
      *
Please login to merge, or discard this patch.