We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public static function getMetadatas(Reflector $reflector): array |
||
| 19 | { |
||
| 20 | $attributes = []; |
||
| 21 | |||
| 22 | switch (true) { |
||
| 23 | case $reflector instanceof ReflectionClass: |
||
| 24 | case $reflector instanceof ReflectionMethod: |
||
| 25 | case $reflector instanceof ReflectionProperty: |
||
| 26 | $attributes = $reflector->getAttributes(); |
||
| 27 | } |
||
| 28 | |||
| 29 | // @phpstan-ignore-next-line |
||
| 30 | return array_map(fn (ReflectionAttribute $attribute) => $attribute->newInstance(), $attributes); |
||
| 31 | } |
||
| 33 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths