Completed
Pull Request — master (#1073)
by Vincent
01:33
created
src/Builder/ListBuilder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
         $this->fixFieldDescription($admin, $fieldDescription);
64 64
     }
65 65
 
66
+    /**
67
+     * @param string|null $type
68
+     */
66 69
     public function addField(FieldDescriptionCollection $list, ?string $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin): void
67 70
     {
68 71
         $this->buildField($type, $fieldDescription, $admin);
Please login to merge, or discard this patch.
src/Builder/ShowBuilder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@
 block discarded – undo
47 47
         return new FieldDescriptionCollection();
48 48
     }
49 49
 
50
+    /**
51
+     * @param null|string $type
52
+     */
50 53
     public function addField(FieldDescriptionCollection $list, ?string $type, FieldDescriptionInterface $fieldDescription, AdminInterface $admin): void
51 54
     {
52 55
         if (null === $type) {
Please login to merge, or discard this patch.
src/Filter/ModelAutocompleteFilter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * For the record, the $alias value is provided by the association method (and the entity join method)
66 66
      *  so the field value is not used here.
67 67
      *
68
-     * @param ProxyQueryInterface|QueryBuilder $queryBuilder
68
+     * @param ProxyQueryInterface $queryBuilder
69 69
      * @param string                           $alias
70 70
      * @param mixed                            $data
71 71
      */
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     }
88 88
 
89 89
     /**
90
-     * @param ProxyQueryInterface|QueryBuilder $queryBuilder
90
+     * @param ProxyQueryInterface $queryBuilder
91 91
      * @param string                           $alias
92 92
      * @param mixed                            $data
93 93
      */
Please login to merge, or discard this patch.
tests/Model/ModelManagerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,6 @@
 block discarded – undo
33 33
 use PHPUnit\Framework\MockObject\MockObject;
34 34
 use PHPUnit\Framework\TestCase;
35 35
 use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
36
-use Sonata\AdminBundle\Datagrid\Datagrid;
37 36
 use Sonata\AdminBundle\Datagrid\DatagridInterface;
38 37
 use Sonata\AdminBundle\Exception\LockException;
39 38
 use Sonata\AdminBundle\Exception\ModelManagerException;
Please login to merge, or discard this patch.