Completed
Pull Request — master (#133)
by
unknown
21:29
created
GeneratedHydrator/CodeGenerator/Visitor/AbstractHydratorMethodsVisitor.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -76,6 +76,7 @@  discard block
 block discarded – undo
76 76
      * Find all class properties recursively using class hierarchy without
77 77
      * removing name redefinitions
78 78
      *
79
+     * @param ReflectionClass $class
79 80
      * @return ReflectionProperty[]
80 81
      */
81 82
     private function findAllInstanceProperties(?ReflectionClass $class = null): array
@@ -88,6 +89,10 @@  discard block
 block discarded – undo
88 89
             $this->findAllInstanceProperties($class->getParentClass() ?: null), // of course PHP is shit.
89 90
             array_values(array_filter(
90 91
                 $class->getProperties(),
92
+
93
+                /**
94
+                 * @param ReflectionClass $property
95
+                 */
91 96
                 static function (ReflectionProperty $property): bool {
92 97
                     return !$property->isStatic();
93 98
                 }
Please login to merge, or discard this patch.
tests/GeneratedHydratorTest/Functional/AbstractHydratorFunctionalTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
 use stdClass;
30 30
 use Zend\Hydrator\AbstractHydrator;
31 31
 use Zend\Hydrator\HydratorInterface;
32
-use Zend\Hydrator\Strategy\ClosureStrategy;
33 32
 use function get_class;
34 33
 use function ksort;
35 34
 
Please login to merge, or discard this patch.