|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
4 | | - message: "#^Cannot unset offset 'url' on array\\{application_name\\?\\: string, charset\\?\\: string, dbname\\?\\: string, defaultTableOptions\\?\\: array\\<string, mixed\\>, driver\\?\\: 'ibm_db2'\\|'mysqli'\\|'oci8'\\|'pdo_mysql'\\|'pdo_oci'\\|'pdo_pgsql'\\|'pdo_sqlite'\\|'pdo_sqlsrv'\\|'pgsql'\\|'sqlite3'\\|'sqlsrv', driverClass\\?\\: class\\-string\\<Doctrine\\\\DBAL\\\\Driver\\>, driverOptions\\?\\: array, host\\?\\: string, \\.\\.\\.\\}\\.$#" |
| 4 | + message: '#^Cannot unset offset ''url'' on array\{application_name\?\: string, charset\?\: string, dbname\?\: string, defaultTableOptions\?\: array\<string, mixed\>, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\<Doctrine\\DBAL\\Driver\>, driverOptions\?\: array\<mixed\>, host\?\: string, \.\.\.\}\.$#' |
| 5 | + identifier: unset.offset |
5 | 6 | count: 1 |
6 | 7 | path: src/Console/DoctrineHelper.php |
7 | 8 |
|
8 | 9 | - |
9 | | - message: "#^Parameter \\#1 \\$key of class Patchlevel\\\\Hydrator\\\\Cryptography\\\\Cipher\\\\CipherKey constructor expects non\\-empty\\-string, string given\\.$#" |
| 10 | + message: '#^Parameter \#1 \$key of class Patchlevel\\Hydrator\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#' |
| 11 | + identifier: argument.type |
10 | 12 | count: 1 |
11 | 13 | path: src/Cryptography/DoctrineCipherKeyStore.php |
12 | 14 |
|
13 | 15 | - |
14 | | - message: "#^Parameter \\#3 \\$iv of class Patchlevel\\\\Hydrator\\\\Cryptography\\\\Cipher\\\\CipherKey constructor expects non\\-empty\\-string, string given\\.$#" |
| 16 | + message: '#^Parameter \#3 \$iv of class Patchlevel\\Hydrator\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#' |
| 17 | + identifier: argument.type |
15 | 18 | count: 1 |
16 | 19 | path: src/Cryptography/DoctrineCipherKeyStore.php |
17 | 20 |
|
18 | 21 | - |
19 | | - message: "#^Parameter \\#2 \\$data of method Patchlevel\\\\Hydrator\\\\Hydrator\\:\\:hydrate\\(\\) expects array\\<string, mixed\\>, mixed given\\.$#" |
| 22 | + message: '#^Call to function method_exists\(\) with ReflectionFunction and ''isAnonymous'' will always evaluate to true\.$#' |
| 23 | + identifier: function.alreadyNarrowedType |
| 24 | + count: 1 |
| 25 | + path: src/EventBus/ListenerDescriptor.php |
| 26 | + |
| 27 | + - |
| 28 | + message: '#^@readonly property Patchlevel\\EventSourcing\\Message\\Message\:\:\$headers is assigned outside of the constructor\.$#' |
| 29 | + identifier: property.readOnlyByPhpDocAssignNotInConstructor |
| 30 | + count: 3 |
| 31 | + path: src/Message/Message.php |
| 32 | + |
| 33 | + - |
| 34 | + message: '#^@readonly property cannot have a default value\.$#' |
| 35 | + identifier: property.readOnlyByPhpDocDefaultValue |
| 36 | + count: 1 |
| 37 | + path: src/Message/Message.php |
| 38 | + |
| 39 | + - |
| 40 | + message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\Hydrator\:\:hydrate\(\) expects array\<string, mixed\>, array\<mixed, mixed\> given\.$#' |
| 41 | + identifier: argument.type |
| 42 | + count: 1 |
| 43 | + path: src/Message/Serializer/DefaultHeadersSerializer.php |
| 44 | + |
| 45 | + - |
| 46 | + message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\Hydrator\:\:hydrate\(\) expects array\<string, mixed\>, mixed given\.$#' |
| 47 | + identifier: argument.type |
20 | 48 | count: 1 |
21 | 49 | path: src/Snapshot/DefaultSnapshotStore.php |
22 | 50 |
|
23 | 51 | - |
24 | | - message: "#^Property Patchlevel\\\\EventSourcing\\\\Store\\\\ArrayStream\\:\\:\\$index \\(int\\<1, max\\>\\|null\\) does not accept int\\<0, max\\>\\.$#" |
| 52 | + message: '#^Method Patchlevel\\EventSourcing\\Store\\ArrayStream\:\:current\(\) never returns null so it can be removed from the return type\.$#' |
| 53 | + identifier: return.unusedType |
25 | 54 | count: 1 |
26 | 55 | path: src/Store/ArrayStream.php |
27 | 56 |
|
28 | 57 | - |
29 | | - message: "#^Ternary operator condition is always true\\.$#" |
| 58 | + message: '#^Property Patchlevel\\EventSourcing\\Store\\ArrayStream\:\:\$index \(int\<1, max\>\|null\) does not accept int\<0, max\>\.$#' |
| 59 | + identifier: assign.propertyType |
30 | 60 | count: 1 |
31 | 61 | path: src/Store/ArrayStream.php |
32 | 62 |
|
33 | 63 | - |
34 | | - message: "#^Method Patchlevel\\\\EventSourcing\\\\Store\\\\Criteria\\\\Criteria\\:\\:get\\(\\) should return T of object but returns object\\.$#" |
| 64 | + message: '#^Ternary operator condition is always true\.$#' |
| 65 | + identifier: ternary.alwaysTrue |
| 66 | + count: 1 |
| 67 | + path: src/Store/ArrayStream.php |
| 68 | + |
| 69 | + - |
| 70 | + message: '#^Method Patchlevel\\EventSourcing\\Store\\Criteria\\Criteria\:\:get\(\) should return T of object but returns object\.$#' |
| 71 | + identifier: return.type |
35 | 72 | count: 1 |
36 | 73 | path: src/Store/Criteria/Criteria.php |
37 | 74 |
|
38 | 75 | - |
39 | | - message: "#^Parameter \\#3 \\$playhead of class Patchlevel\\\\EventSourcing\\\\Aggregate\\\\AggregateHeader constructor expects int\\<1, max\\>, int given\\.$#" |
| 76 | + message: '#^Method Patchlevel\\EventSourcing\\Store\\DoctrineDbalStoreStream\:\:current\(\) never returns null so it can be removed from the return type\.$#' |
| 77 | + identifier: return.unusedType |
40 | 78 | count: 1 |
41 | 79 | path: src/Store/DoctrineDbalStoreStream.php |
42 | 80 |
|
43 | 81 | - |
44 | | - message: "#^Parameter \\#4 \\$recordedOn of class Patchlevel\\\\EventSourcing\\\\Aggregate\\\\AggregateHeader constructor expects DateTimeImmutable, mixed given\\.$#" |
| 82 | + message: '#^Parameter \#3 \$playhead of class Patchlevel\\EventSourcing\\Aggregate\\AggregateHeader constructor expects int\<1, max\>, int given\.$#' |
| 83 | + identifier: argument.type |
45 | 84 | count: 1 |
46 | 85 | path: src/Store/DoctrineDbalStoreStream.php |
47 | 86 |
|
48 | 87 | - |
49 | | - message: "#^Ternary operator condition is always true\\.$#" |
| 88 | + message: '#^Parameter \#4 \$recordedOn of class Patchlevel\\EventSourcing\\Aggregate\\AggregateHeader constructor expects DateTimeImmutable, mixed given\.$#' |
| 89 | + identifier: argument.type |
50 | 90 | count: 1 |
51 | 91 | path: src/Store/DoctrineDbalStoreStream.php |
52 | 92 |
|
53 | 93 | - |
54 | | - message: "#^Property Patchlevel\\\\EventSourcing\\\\Store\\\\InMemoryStore\\:\\:\\$messages \\(array\\<int\\<0, max\\>, Patchlevel\\\\EventSourcing\\\\Message\\\\Message\\>\\) does not accept array\\<int, Patchlevel\\\\EventSourcing\\\\Message\\\\Message\\>\\.$#" |
| 94 | + message: '#^Ternary operator condition is always true\.$#' |
| 95 | + identifier: ternary.alwaysTrue |
55 | 96 | count: 1 |
56 | | - path: src/Store/InMemoryStore.php |
| 97 | + path: src/Store/DoctrineDbalStoreStream.php |
57 | 98 |
|
58 | 99 | - |
59 | | - message: "#^Parameter \\#1 \\$playhead of class Patchlevel\\\\EventSourcing\\\\Store\\\\Header\\\\PlayheadHeader constructor expects int\\<1, max\\>, int given\\.$#" |
| 100 | + message: '#^Method Patchlevel\\EventSourcing\\Store\\StreamDoctrineDbalStoreStream\:\:current\(\) never returns null so it can be removed from the return type\.$#' |
| 101 | + identifier: return.unusedType |
60 | 102 | count: 1 |
61 | 103 | path: src/Store/StreamDoctrineDbalStoreStream.php |
62 | 104 |
|
63 | 105 | - |
64 | | - message: "#^Ternary operator condition is always true\\.$#" |
| 106 | + message: '#^Parameter \#1 \$playhead of class Patchlevel\\EventSourcing\\Store\\Header\\PlayheadHeader constructor expects int\<1, max\>, int given\.$#' |
| 107 | + identifier: argument.type |
65 | 108 | count: 1 |
66 | 109 | path: src/Store/StreamDoctrineDbalStoreStream.php |
67 | 110 |
|
68 | 111 | - |
69 | | - message: "#^Strict comparison using \\=\\=\\= between DateTimeImmutable and false will always evaluate to false\\.$#" |
| 112 | + message: '#^Ternary operator condition is always true\.$#' |
| 113 | + identifier: ternary.alwaysTrue |
| 114 | + count: 1 |
| 115 | + path: src/Store/StreamDoctrineDbalStoreStream.php |
| 116 | + |
| 117 | + - |
| 118 | + message: '#^Strict comparison using \=\=\= between DateTimeImmutable and false will always evaluate to false\.$#' |
| 119 | + identifier: identical.alwaysFalse |
70 | 120 | count: 1 |
71 | 121 | path: src/Subscription/RetryStrategy/ClockBasedRetryStrategy.php |
72 | 122 |
|
73 | 123 | - |
74 | | - message: "#^Parameter \\#3 \\$errorContext of class Patchlevel\\\\EventSourcing\\\\Subscription\\\\SubscriptionError constructor expects array\\<int, array\\{class\\: class\\-string, message\\: string, code\\: int\\|string, file\\: string, line\\: int, trace\\: array\\<int, array\\{file\\?\\: string, line\\?\\: int, function\\?\\: string, class\\?\\: string, type\\?\\: string, args\\?\\: array\\}\\>\\}\\>\\|null, mixed given\\.$#" |
| 124 | + message: '#^Parameter \#3 \$errorContext of class Patchlevel\\EventSourcing\\Subscription\\SubscriptionError constructor expects list\<array\{class\: class\-string, message\: string, code\: int\|string, file\: string, line\: int, trace\: list\<array\{file\?\: string, line\?\: int, function\?\: string, class\?\: string, type\?\: string, args\?\: array\<mixed\>\}\>\}\>\|null, mixed given\.$#' |
| 125 | + identifier: argument.type |
75 | 126 | count: 1 |
76 | 127 | path: src/Subscription/Store/DoctrineSubscriptionStore.php |
| 128 | + |
| 129 | + - |
| 130 | + message: '#^Trait Patchlevel\\EventSourcing\\Subscription\\Subscriber\\SubscriberUtil is used zero times and is not analysed\.$#' |
| 131 | + identifier: trait.unused |
| 132 | + count: 1 |
| 133 | + path: src/Subscription/Subscriber/SubscriberUtil.php |
0 commit comments