|
2 | 2 |
|
3 | 3 | $ignoreErrors = []; |
4 | 4 | $ignoreErrors[] = [ |
5 | | - 'message' => '#^Method Nexus\\\\Collection\\\\Collection\\:\\:all\\(\\) should return array\\<T\\> but returns array\\<TKey, T\\>\\.$#', |
| 5 | + 'rawMessage' => 'Method Nexus\\Collection\\Collection::all() should return array<T> but returns array<TKey, T>.', |
6 | 6 | 'identifier' => 'return.type', |
7 | 7 | 'count' => 1, |
8 | 8 | 'path' => __DIR__ . '/src/Nexus/Collection/Collection.php', |
9 | 9 | ]; |
10 | 10 | $ignoreErrors[] = [ |
11 | | - 'message' => '#^Function Nexus\\\\Option\\\\option\\(\\) never returns Nexus\\\\Option\\\\Some\\<T of mixed\\> so it can be removed from the return type\\.$#', |
| 11 | + 'rawMessage' => 'Function Nexus\\Option\\option() never returns Nexus\\Option\\Some<T of mixed> so it can be removed from the return type.', |
12 | 12 | 'identifier' => 'return.unusedType', |
13 | 13 | 'count' => 1, |
14 | 14 | 'path' => __DIR__ . '/src/Nexus/Option/functions.php', |
15 | 15 | ]; |
16 | 16 | $ignoreErrors[] = [ |
17 | | - 'message' => '#^Method Nexus\\\\Tests\\\\AutoReview\\\\ComposerJsonTest\\:\\:getComposer\\(\\) should return array\\<string, mixed\\> but returns mixed\\.$#', |
| 17 | + 'rawMessage' => 'Method Nexus\\Tests\\AutoReview\\ComposerJsonTest::getComposer() should return array<string, mixed> but returns mixed.', |
18 | 18 | 'identifier' => 'return.type', |
19 | 19 | 'count' => 1, |
20 | 20 | 'path' => __DIR__ . '/tests/AutoReview/ComposerJsonTest.php', |
21 | 21 | ]; |
22 | 22 | $ignoreErrors[] = [ |
23 | | - 'message' => '#^Call to function in_array\\(\\) with arguments string, array\\{\\} and true will always evaluate to false\\.$#', |
| 23 | + 'rawMessage' => 'Call to function in_array() with arguments string, array{} and true will always evaluate to false.', |
24 | 24 | 'identifier' => 'function.impossibleType', |
25 | 25 | 'count' => 1, |
26 | 26 | 'path' => __DIR__ . '/tests/AutoReview/TestCodeTest.php', |
27 | 27 | ]; |
28 | | -$ignoreErrors[] = [ |
29 | | - 'message' => '#^Call to method Nexus\\\\Option\\\\Some\\<int\\>\\:\\:isNone\\(\\) will always evaluate to false\\.$#', |
30 | | - 'identifier' => 'method.impossibleType', |
31 | | - 'count' => 1, |
32 | | - 'path' => __DIR__ . '/tests/Option/OptionTest.php', |
33 | | -]; |
34 | 28 |
|
35 | 29 | return ['parameters' => ['ignoreErrors' => $ignoreErrors]]; |
0 commit comments