Test Failed
Pull Request — main (#20)
by Anatoly
31:11 queued 02:30
created

CustomEnum   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A values() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Sunrise\Hydrator\Tests\Fixtures;
6
7
use Sunrise\Hydrator\Enum;
0 ignored issues
show
Bug introduced by
The type Sunrise\Hydrator\Enum 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...
8
9
use function array_map;
10
11
final class CustomEnum extends Enum
12
{
13
    public const Int1 = 1;
14
    public const Int2 = 2 ;
15
16
    public const String1 = 'foo';
17
    public const String2 = 'bar';
18
19
    public const Another = [];
20
21
    public static function values() : array
22
    {
23
        return array_map(function ($case) {
24
            return $case->value();
25
        }, self::cases());
26
    }
27
}
28