-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.php
29 lines (27 loc) · 1.19 KB
/
phpstan-baseline.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
// identifier: return.unusedType
'message' => '#^Method Nexus\\\\Option\\\\Choice\\:\\:from\\(\\) never returns Nexus\\\\Option\\\\Some\\<T of mixed\\> so it can be removed from the return type\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Nexus/Option/Choice.php',
];
$ignoreErrors[] = [
// identifier: return.type
'message' => '#^Method Nexus\\\\Tests\\\\AutoReview\\\\ComposerJsonTest\\:\\:getComposer\\(\\) should return array\\<string, mixed\\> but returns mixed\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/AutoReview/ComposerJsonTest.php',
];
$ignoreErrors[] = [
// identifier: function.impossibleType
'message' => '#^Call to function in_array\\(\\) with arguments string, array\\{\\} and true will always evaluate to false\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/AutoReview/TestCodeTest.php',
];
$ignoreErrors[] = [
// identifier: method.impossibleType
'message' => '#^Call to method Nexus\\\\Option\\\\Some\\<int\\>\\:\\:isNone\\(\\) will always evaluate to false\\.$#',
'count' => 1,
'path' => __DIR__ . '/tests/Option/OptionTest.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];