Issues (54)

tests/Fixture/StringEnum.php (2 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sunrise\Hydrator\Tests\Fixture;
6
7
enum StringEnum: string
8
{
9
    case FOO = 'cc77dcf7-9266-43c1-b434-ff37344ee466';
10
    case BAR = 'ee7e1a9b-c07d-4c9a-b5f6-aed0a917a94c';
11
    case BAZ = 'aee53f73-e112-44a1-a3d5-63ea2b272383';
12
13
    /**
14
     * @return list<string>
0 ignored issues
show
The type Sunrise\Hydrator\Tests\Fixture\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...
15
     */
16
    public static function values(): array
17
    {
18
        $values = [];
19
        foreach (self::cases() as $case) {
20
            $values[] = $case->value;
21
        }
22
23
        return $values;
0 ignored issues
show
Bug Best Practice introduced by
The expression return $values returns the type array|string[] which is incompatible with the documented return type Sunrise\Hydrator\Tests\Fixture\list.
Loading history...
24
    }
25
}
26