@@ -2,94 +2,94 @@ |
||
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/DomainCommand/Cached/CachedDomainCommandResolverDecoratorTest.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/DomainCommand/Cached/CachedDomainCommandResolverDecoratorTest.php', |
|
21 | 21 | ]; |
22 | 22 | $ignoreErrors[] = [ |
23 | - 'message' => '#^Parameter \\#1 \\$payload of static method Gember\\\\EventSourcing\\\\Resolver\\\\DomainCommand\\\\DomainCommandDefinition\\:\\:fromPayload\\(\\) expects array\\{commandClassName\\: class\\-string, domainTags\\: list\\<array\\{domainTagName\\: string, type\\: string\\}\\>\\}, mixed given\\.$#', |
|
24 | - 'identifier' => 'argument.type', |
|
25 | - 'count' => 1, |
|
26 | - 'path' => __DIR__ . '/tests/Resolver/DomainCommand/Cached/CachedDomainCommandResolverDecoratorTest.php', |
|
23 | + 'message' => '#^Parameter \\#1 \\$payload of static method Gember\\\\EventSourcing\\\\Resolver\\\\DomainCommand\\\\DomainCommandDefinition\\:\\:fromPayload\\(\\) expects array\\{commandClassName\\: class\\-string, domainTags\\: list\\<array\\{domainTagName\\: string, type\\: string\\}\\>\\}, mixed given\\.$#', |
|
24 | + 'identifier' => 'argument.type', |
|
25 | + 'count' => 1, |
|
26 | + 'path' => __DIR__ . '/tests/Resolver/DomainCommand/Cached/CachedDomainCommandResolverDecoratorTest.php', |
|
27 | 27 | ]; |
28 | 28 | $ignoreErrors[] = [ |
29 | - 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#', |
|
30 | - 'identifier' => 'argument.type', |
|
31 | - 'count' => 1, |
|
32 | - 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
|
29 | + 'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#', |
|
30 | + 'identifier' => 'argument.type', |
|
31 | + 'count' => 1, |
|
32 | + 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
|
33 | 33 | ]; |
34 | 34 | $ignoreErrors[] = [ |
35 | - '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\\.$#', |
|
36 | - 'identifier' => 'argument.type', |
|
37 | - 'count' => 1, |
|
38 | - 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
|
35 | + '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\\.$#', |
|
36 | + 'identifier' => 'argument.type', |
|
37 | + 'count' => 1, |
|
38 | + 'path' => __DIR__ . '/tests/Resolver/DomainEvent/Cached/CachedDomainEventResolverDecoratorTest.php', |
|
39 | 39 | ]; |
40 | 40 | $ignoreErrors[] = [ |
41 | - 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Repository\\\\TestUseCaseRepository\\:\\:get\\(\\) should return T of Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase but returns Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase\\.$#', |
|
42 | - 'identifier' => 'return.type', |
|
43 | - 'count' => 1, |
|
44 | - 'path' => __DIR__ . '/tests/TestDoubles/Repository/TestUseCaseRepository.php', |
|
41 | + 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Repository\\\\TestUseCaseRepository\\:\\:get\\(\\) should return T of Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase but returns Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase\\.$#', |
|
42 | + 'identifier' => 'return.type', |
|
43 | + 'count' => 1, |
|
44 | + 'path' => __DIR__ . '/tests/TestDoubles/Repository/TestUseCaseRepository.php', |
|
45 | 45 | ]; |
46 | 46 | $ignoreErrors[] = [ |
47 | - 'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$domainTag\\. Assign it in the constructor\\.$#', |
|
48 | - 'identifier' => 'property.uninitializedReadonly', |
|
49 | - 'count' => 1, |
|
50 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
47 | + 'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$domainTag\\. Assign it in the constructor\\.$#', |
|
48 | + 'identifier' => 'property.uninitializedReadonly', |
|
49 | + 'count' => 1, |
|
50 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
51 | 51 | ]; |
52 | 52 | $ignoreErrors[] = [ |
53 | - 'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$secondaryId\\. Assign it in the constructor\\.$#', |
|
54 | - 'identifier' => 'property.uninitializedReadonly', |
|
55 | - 'count' => 1, |
|
56 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
53 | + 'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$secondaryId\\. Assign it in the constructor\\.$#', |
|
54 | + 'identifier' => 'property.uninitializedReadonly', |
|
55 | + 'count' => 1, |
|
56 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
57 | 57 | ]; |
58 | 58 | $ignoreErrors[] = [ |
59 | - 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseCreatedEvent\\(\\) is unused\\.$#', |
|
60 | - 'identifier' => 'method.unused', |
|
61 | - 'count' => 1, |
|
62 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
59 | + 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseCreatedEvent\\(\\) is unused\\.$#', |
|
60 | + 'identifier' => 'method.unused', |
|
61 | + 'count' => 1, |
|
62 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
63 | 63 | ]; |
64 | 64 | $ignoreErrors[] = [ |
65 | - 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseModifiedEvent\\(\\) is unused\\.$#', |
|
66 | - 'identifier' => 'method.unused', |
|
67 | - 'count' => 1, |
|
68 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
65 | + 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseModifiedEvent\\(\\) is unused\\.$#', |
|
66 | + 'identifier' => 'method.unused', |
|
67 | + 'count' => 1, |
|
68 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', |
|
69 | 69 | ]; |
70 | 70 | $ignoreErrors[] = [ |
71 | - 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
|
72 | - 'identifier' => 'return.type', |
|
73 | - 'count' => 1, |
|
74 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php', |
|
71 | + 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
|
72 | + 'identifier' => 'return.type', |
|
73 | + 'count' => 1, |
|
74 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php', |
|
75 | 75 | ]; |
76 | 76 | $ignoreErrors[] = [ |
77 | - 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
|
78 | - 'identifier' => 'return.type', |
|
79 | - 'count' => 1, |
|
80 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
|
77 | + 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', |
|
78 | + 'identifier' => 'return.type', |
|
79 | + 'count' => 1, |
|
80 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
|
81 | 81 | ]; |
82 | 82 | $ignoreErrors[] = [ |
83 | - 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#', |
|
84 | - 'identifier' => 'missingType.parameter', |
|
85 | - 'count' => 1, |
|
86 | - 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
|
83 | + 'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#', |
|
84 | + 'identifier' => 'missingType.parameter', |
|
85 | + 'count' => 1, |
|
86 | + 'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', |
|
87 | 87 | ]; |
88 | 88 | $ignoreErrors[] = [ |
89 | - 'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#', |
|
90 | - 'identifier' => 'argument.type', |
|
91 | - 'count' => 1, |
|
92 | - 'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php', |
|
89 | + 'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#', |
|
90 | + 'identifier' => 'argument.type', |
|
91 | + 'count' => 1, |
|
92 | + 'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php', |
|
93 | 93 | ]; |
94 | 94 | |
95 | 95 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |