Passed
Pull Request — main (#20)
by Jeroen
02:06
created
phpstan-baseline.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types = 1);
1
+<?php declare(strict_types=1);
2 2
 
3 3
 $ignoreErrors = [];
4 4
 $ignoreErrors[] = [
Please login to merge, or discard this patch.
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -2,70 +2,70 @@
 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' => '#^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' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#',
48
-	'identifier' => 'return.type',
49
-	'count' => 1,
50
-	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php',
47
+    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCase\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#',
48
+    'identifier' => 'return.type',
49
+    'count' => 1,
50
+    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCase.php',
51 51
 ];
52 52
 $ignoreErrors[] = [
53
-	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#',
54
-	'identifier' => 'return.type',
55
-	'count' => 1,
56
-	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php',
53
+    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:getDomainTags\\(\\) should return list\\<string\\|Stringable\\> but returns list\\.$#',
54
+    'identifier' => 'return.type',
55
+    'count' => 1,
56
+    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php',
57 57
 ];
58 58
 $ignoreErrors[] = [
59
-	'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#',
60
-	'identifier' => 'missingType.parameter',
61
-	'count' => 1,
62
-	'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php',
59
+    'message' => '#^Method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\UseCase\\\\TestUseCaseWithCommandHandler\\:\\:invalidWithParameterType\\(\\) has parameter \\$command with no type specified\\.$#',
60
+    'identifier' => 'missingType.parameter',
61
+    'count' => 1,
62
+    'path' => __DIR__ . '/tests/TestDoubles/UseCase/TestUseCaseWithCommandHandler.php',
63 63
 ];
64 64
 $ignoreErrors[] = [
65
-	'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#',
66
-	'identifier' => 'argument.type',
67
-	'count' => 1,
68
-	'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php',
65
+    'message' => '#^Parameter \\#1 \\$key of method Gember\\\\EventSourcing\\\\Test\\\\TestDoubles\\\\Util\\\\Cache\\\\TestCache\\:\\:set\\(\\) expects string, mixed given\\.$#',
66
+    'identifier' => 'argument.type',
67
+    'count' => 1,
68
+    'path' => __DIR__ . '/tests/TestDoubles/Util/Cache/TestCache.php',
69 69
 ];
70 70
 
71 71
 return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
Please login to merge, or discard this patch.