@@ -76,6 +76,7 @@ discard block |
||
| 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 |
||
| 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 | } |