Completed
Push — psalm-fight ( 9adcb4 )
by Kamil
05:05
created
src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
     public static function findOneBy(RepositoryInterface $repository, string $field): \Closure
121 121
     {
122 122
         return
123
-            /** @param mixed $previousValue */
123
+            /** @param string $previousValue */
124 124
             function (Options $options, $previousValue) use ($repository, $field): ?object {
125 125
                 if (null === $previousValue || [] === $previousValue) {
126 126
                     return $previousValue;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public static function findBy(RepositoryInterface $repository, string $field): \Closure
101 101
     {
102
-        return function (Options $options, ?array $previousValues) use ($repository, $field): ?iterable {
102
+        return function (Options $options, ?array $previousValues) use ($repository, $field) : ?iterable {
103 103
             if (null === $previousValues || [] === $previousValues) {
104 104
                 return $previousValues;
105 105
             }
Please login to merge, or discard this patch.