Issues (121)

src/Definitions/BaseEnum.php (2 issues)

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
The type Inspirum\Balikobot\Definitions\list was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
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
Bug Best Practice introduced by
The expression return array_values($class->getConstants()) returns the type array which is incompatible with the documented return type Inspirum\Balikobot\Definitions\list.
Loading history...
20
    }
21
}
22