|  | @@ -2,106 +2,106 @@ | 
                                                    
                                                        |  |  |  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/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' => '#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#', | 
                                                                                                            
                                                            | 42 |  | -	'identifier' => 'argument.type', | 
                                                                                                            
                                                            | 43 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 44 |  | -	'path' => __DIR__ . '/tests/Resolver/UseCase/Cached/CachedUseCaseResolverDecoratorTest.php', | 
                                                                                                            
                                                            |  | 41 | +    'message' => '#^Parameter \\#1 \\$json of function json_decode expects string, mixed given\\.$#', | 
                                                                                                            
                                                            |  | 42 | +    'identifier' => 'argument.type', | 
                                                                                                            
                                                            |  | 43 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 44 | +    'path' => __DIR__ . '/tests/Resolver/UseCase/Cached/CachedUseCaseResolverDecoratorTest.php', | 
                                                                                                            
                                                            | 45 | 45 |  ]; | 
                                                                                                            
                                                            | 46 | 46 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 47 |  | -	'message' => '#^Parameter \\#1 \\$payload of static method Gember\\\\EventSourcing\\\\Resolver\\\\UseCase\\\\UseCaseDefinition\\:\\:fromPayload\\(\\) expects array\\{useCaseClassName\\: class\\-string, domainTags\\: list\\<array\\{domainTagName\\: string, type\\: string\\}\\>, commandHandlers\\: list\\<array\\{commandClassName\\: class\\-string, methodName\\: string, policy\\: string\\}\\>, eventSubscribers\\: list\\<array\\{eventClassName\\: class\\-string, methodName\\: string\\}\\>\\}, mixed given\\.$#', | 
                                                                                                            
                                                            | 48 |  | -	'identifier' => 'argument.type', | 
                                                                                                            
                                                            | 49 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 50 |  | -	'path' => __DIR__ . '/tests/Resolver/UseCase/Cached/CachedUseCaseResolverDecoratorTest.php', | 
                                                                                                            
                                                            |  | 47 | +    'message' => '#^Parameter \\#1 \\$payload of static method Gember\\\\EventSourcing\\\\Resolver\\\\UseCase\\\\UseCaseDefinition\\:\\:fromPayload\\(\\) expects array\\{useCaseClassName\\: class\\-string, domainTags\\: list\\<array\\{domainTagName\\: string, type\\: string\\}\\>, commandHandlers\\: list\\<array\\{commandClassName\\: class\\-string, methodName\\: string, policy\\: string\\}\\>, eventSubscribers\\: list\\<array\\{eventClassName\\: class\\-string, methodName\\: string\\}\\>\\}, mixed given\\.$#', | 
                                                                                                            
                                                            |  | 48 | +    'identifier' => 'argument.type', | 
                                                                                                            
                                                            |  | 49 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 50 | +    'path' => __DIR__ . '/tests/Resolver/UseCase/Cached/CachedUseCaseResolverDecoratorTest.php', | 
                                                                                                            
                                                            | 51 | 51 |  ]; | 
                                                                                                            
                                                            | 52 | 52 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 53 |  | -	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Repository\\\\TestUseCaseRepository\\:\\:get\\(\\) should return T of Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase but returns Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase\\.$#', | 
                                                                                                            
                                                            | 54 |  | -	'identifier' => 'return.type', | 
                                                                                                            
                                                            | 55 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 56 |  | -	'path' => __DIR__ . '/tests/TestDoubles/Repository/TestUseCaseRepository.php', | 
                                                                                                            
                                                            |  | 53 | +    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Repository\\\\TestUseCaseRepository\\:\\:get\\(\\) should return T of Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase but returns Gember\\\\EventSourcing\\\\UseCase\\\\EventSourcedUseCase\\.$#', | 
                                                                                                            
                                                            |  | 54 | +    'identifier' => 'return.type', | 
                                                                                                            
                                                            |  | 55 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 56 | +    'path' => __DIR__ . '/tests/TestDoubles/Repository/TestUseCaseRepository.php', | 
                                                                                                            
                                                            | 57 | 57 |  ]; | 
                                                                                                            
                                                            | 58 | 58 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 59 |  | -	'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$domainTag\\. Assign it in the constructor\\.$#', | 
                                                                                                            
                                                            | 60 |  | -	'identifier' => 'property.uninitializedReadonly', | 
                                                                                                            
                                                            | 61 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 62 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            |  | 59 | +    'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$domainTag\\. Assign it in the constructor\\.$#', | 
                                                                                                            
                                                            |  | 60 | +    'identifier' => 'property.uninitializedReadonly', | 
                                                                                                            
                                                            |  | 61 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 62 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            | 63 | 63 |  ]; | 
                                                                                                            
                                                            | 64 | 64 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 65 |  | -	'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$secondaryId\\. Assign it in the constructor\\.$#', | 
                                                                                                            
                                                            | 66 |  | -	'identifier' => 'property.uninitializedReadonly', | 
                                                                                                            
                                                            | 67 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 68 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            |  | 65 | +    'message' => '#^Class Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase has an uninitialized readonly property \\$secondaryId\\. Assign it in the constructor\\.$#', | 
                                                                                                            
                                                            |  | 66 | +    'identifier' => 'property.uninitializedReadonly', | 
                                                                                                            
                                                            |  | 67 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 68 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            | 69 | 69 |  ]; | 
                                                                                                            
                                                            | 70 | 70 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 71 |  | -	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseCreatedEvent\\(\\) is unused\\.$#', | 
                                                                                                            
                                                            | 72 |  | -	'identifier' => 'method.unused', | 
                                                                                                            
                                                            | 73 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 74 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            |  | 71 | +    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseCreatedEvent\\(\\) is unused\\.$#', | 
                                                                                                            
                                                            |  | 72 | +    'identifier' => 'method.unused', | 
                                                                                                            
                                                            |  | 73 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 74 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            | 75 | 75 |  ]; | 
                                                                                                            
                                                            | 76 | 76 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 77 |  | -	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseModifiedEvent\\(\\) is unused\\.$#', | 
                                                                                                            
                                                            | 78 |  | -	'identifier' => 'method.unused', | 
                                                                                                            
                                                            | 79 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 80 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            |  | 77 | +    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestFullUseCase\\:\\:onTestUseCaseModifiedEvent\\(\\) is unused\\.$#', | 
                                                                                                            
                                                            |  | 78 | +    'identifier' => 'method.unused', | 
                                                                                                            
                                                            |  | 79 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 80 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestFullUseCase.php', | 
                                                                                                            
                                                            | 81 | 81 |  ]; | 
                                                                                                            
                                                            | 82 | 82 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 83 |  | -	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', | 
                                                                                                            
                                                            | 84 |  | -	'identifier' => 'return.type', | 
                                                                                                            
                                                            | 85 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 86 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php', | 
                                                                                                            
                                                            |  | 83 | +    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', | 
                                                                                                            
                                                            |  | 84 | +    'identifier' => 'return.type', | 
                                                                                                            
                                                            |  | 85 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 86 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php', | 
                                                                                                            
                                                            | 87 | 87 |  ]; | 
                                                                                                            
                                                            | 88 | 88 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 89 |  | -	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', | 
                                                                                                            
                                                            | 90 |  | -	'identifier' => 'return.type', | 
                                                                                                            
                                                            | 91 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 92 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', | 
                                                                                                            
                                                            |  | 89 | +    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#', | 
                                                                                                            
                                                            |  | 90 | +    'identifier' => 'return.type', | 
                                                                                                            
                                                            |  | 91 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 92 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', | 
                                                                                                            
                                                            | 93 | 93 |  ]; | 
                                                                                                            
                                                            | 94 | 94 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 95 |  | -	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#', | 
                                                                                                            
                                                            | 96 |  | -	'identifier' => 'missingType.parameter', | 
                                                                                                            
                                                            | 97 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 98 |  | -	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', | 
                                                                                                            
                                                            |  | 95 | +    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#', | 
                                                                                                            
                                                            |  | 96 | +    'identifier' => 'missingType.parameter', | 
                                                                                                            
                                                            |  | 97 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 98 | +    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php', | 
                                                                                                            
                                                            | 99 | 99 |  ]; | 
                                                                                                            
                                                            | 100 | 100 |  $ignoreErrors[] = [ | 
                                                                                                            
                                                            | 101 |  | -	'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#', | 
                                                                                                            
                                                            | 102 |  | -	'identifier' => 'argument.type', | 
                                                                                                            
                                                            | 103 |  | -	'count' => 1, | 
                                                                                                            
                                                            | 104 |  | -	'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php', | 
                                                                                                            
                                                            |  | 101 | +    'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#', | 
                                                                                                            
                                                            |  | 102 | +    'identifier' => 'argument.type', | 
                                                                                                            
                                                            |  | 103 | +    'count' => 1, | 
                                                                                                            
                                                            |  | 104 | +    'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php', | 
                                                                                                            
                                                            | 105 | 105 |  ]; | 
                                                                                                            
                                                            | 106 | 106 |   | 
                                                                                                            
                                                            | 107 | 107 |  return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |