1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace Inspirum\Balikobot\Definitions; |
||
6 | |||
7 | use ReflectionClass; |
||
8 | use function array_values; |
||
9 | |||
10 | abstract class BaseEnum |
||
11 | { |
||
12 | /** |
||
13 | * @return list<string> |
||
0 ignored issues
–
show
|
|||
14 | */ |
||
15 | public static function getAll(): array |
||
16 | { |
||
17 | $class = new ReflectionClass(static::class); |
||
18 | |||
19 | return array_values($class->getConstants()); |
||
0 ignored issues
–
show
|
|||
20 | } |
||
21 | } |
||
22 |
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