|
@@ -2,58 +2,58 @@ |
|
|
block discarded – undo |
2
|
2
|
|
3
|
3
|
$ignoreErrors = []; |
4
|
4
|
$ignoreErrors[] = [ |
5
|
|
- 'message' => '#^Cannot cast mixed to string\\.$#', |
6
|
|
- 'identifier' => 'cast.string', |
7
|
|
- 'count' => 2, |
8
|
|
- 'path' => __DIR__ . '/src/Resolver/Common/DomainTag/DomainTagValueHelper.php', |
|
5
|
+ 'message' => '#^Cannot cast mixed to string\\.$#', |
|
6
|
+ 'identifier' => 'cast.string', |
|
7
|
+ 'count' => 2, |
|
8
|
+ 'path' => __DIR__ . '/src/Resolver/Common/DomainTag/DomainTagValueHelper.php', |
9
|
9
|
]; |
10
|
10
|
$ignoreErrors[] = [ |
11
|
|
- 'message' => '#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#', |
12
|
|
- 'identifier' => 'argument.type', |
13
|
|
- 'count' => 1, |
14
|
|
- 'path' => __DIR__ . '/src/Resolver/Common/DomainTag/DomainTagValueHelper.php', |
|
11
|
+ 'message' => '#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#', |
|
12
|
+ 'identifier' => 'argument.type', |
|
13
|
+ 'count' => 1, |
|
14
|
+ 'path' => __DIR__ . '/src/Resolver/Common/DomainTag/DomainTagValueHelper.php', |
15
|
15
|
]; |
16
|
16
|
$ignoreErrors[] = [ |
17
|
|
- 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#', |
18
|
|
- 'identifier' => 'argument.type', |
19
|
|
- 'count' => 1, |
20
|
|
- 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
|
17
|
+ 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#', |
|
18
|
+ 'identifier' => 'argument.type', |
|
19
|
+ 'count' => 1, |
|
20
|
+ 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
21
|
21
|
]; |
22
|
22
|
$ignoreErrors[] = [ |
23
|
|
- 'message' => '#^Parameter \\#1 \\$payload of static method Gember\\\\EventSourcing\\\\Resolver\\\\DomainEvent\\\\DomainEventDefinition\\:\\:fromPayload\\(\\) expects array\\{eventClassName\\: class\\-string, eventName\\: string, domainTags\\: list\\<array\\{domainTagName\\: string, type\\: string\\}\\>\\}, mixed given\\.$#', |
24
|
|
- 'identifier' => 'argument.type', |
25
|
|
- 'count' => 1, |
26
|
|
- 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
|
23
|
+ 'message' => '#^Parameter \\#1 \\$payload of static method Gember\\\\EventSourcing\\\\Resolver\\\\DomainEvent\\\\DomainEventDefinition\\:\\:fromPayload\\(\\) expects array\\{eventClassName\\: class\\-string, eventName\\: string, domainTags\\: list\\<array\\{domainTagName\\: string, type\\: string\\}\\>\\}, mixed given\\.$#', |
|
24
|
+ 'identifier' => 'argument.type', |
|
25
|
+ 'count' => 1, |
|
26
|
+ 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
27
|
27
|
]; |
28
|
28
|
$ignoreErrors[] = [ |
29
|
|
- 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Repository\\\\TestUseCaseRepository\\:\\:get\\(\\) should return T of Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase but returns Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase\\.$#', |
30
|
|
- 'identifier' => 'return.type', |
31
|
|
- 'count' => 1, |
32
|
|
- 'path' => __DIR__ . '/tests/TestDoubles/Repository/TestUseCaseRepository.php', |
|
29
|
+ 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Repository\\\\TestUseCaseRepository\\:\\:get\\(\\) should return T of Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase but returns Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase\\.$#', |
|
30
|
+ 'identifier' => 'return.type', |
|
31
|
+ 'count' => 1, |
|
32
|
+ 'path' => __DIR__ . '/tests/TestDoubles/Repository/TestUseCaseRepository.php', |
33
|
33
|
]; |
34
|
34
|
$ignoreErrors[] = [ |
35
|
|
- 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
36
|
|
- 'identifier' => 'return.type', |
37
|
|
- 'count' => 1, |
38
|
|
- 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php', |
|
35
|
+ 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
|
36
|
+ 'identifier' => 'return.type', |
|
37
|
+ 'count' => 1, |
|
38
|
+ 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php', |
39
|
39
|
]; |
40
|
40
|
$ignoreErrors[] = [ |
41
|
|
- 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
42
|
|
- 'identifier' => 'return.type', |
43
|
|
- 'count' => 1, |
44
|
|
- 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
|
41
|
+ 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
|
42
|
+ 'identifier' => 'return.type', |
|
43
|
+ 'count' => 1, |
|
44
|
+ 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
45
|
45
|
]; |
46
|
46
|
$ignoreErrors[] = [ |
47
|
|
- 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#', |
48
|
|
- 'identifier' => 'missingType.parameter', |
49
|
|
- 'count' => 1, |
50
|
|
- 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
|
47
|
+ 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#', |
|
48
|
+ 'identifier' => 'missingType.parameter', |
|
49
|
+ 'count' => 1, |
|
50
|
+ 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
51
|
51
|
]; |
52
|
52
|
$ignoreErrors[] = [ |
53
|
|
- 'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#', |
54
|
|
- 'identifier' => 'argument.type', |
55
|
|
- 'count' => 1, |
56
|
|
- 'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php', |
|
53
|
+ 'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#', |
|
54
|
+ 'identifier' => 'argument.type', |
|
55
|
+ 'count' => 1, |
|
56
|
+ 'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php', |
57
|
57
|
]; |
58
|
58
|
|
59
|
59
|
return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |