-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.php
More file actions
71 lines (69 loc) · 3.16 KB
/
phpstan-baseline.php
File metadata and controls
71 lines (69 loc) · 3.16 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'rawMessage' => 'Method Nexus\\Collection\\Collection::all() should return array<T> but returns array<TKey, T>.',
'identifier' => 'return.type',
'count' => 1,
'path' => __DIR__ . '/src/Nexus/Collection/Collection.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #3 ...$values of function sprintf expects bool|float|int|string|null, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Nexus/Password/Hash/Pbkdf2Hash.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Method Nexus\\Tests\\AutoReview\\ComposerJsonTest::getComposer() should return array<string, mixed> but returns mixed.',
'identifier' => 'return.type',
'count' => 1,
'path' => __DIR__ . '/tests/AutoReview/ComposerJsonTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Call to function in_array() with arguments string, array{} and true will always evaluate to false.',
'identifier' => 'function.impossibleType',
'count' => 1,
'path' => __DIR__ . '/tests/AutoReview/TestCodeTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #1 $items of static method Nexus\\Collection\\Collection<mixed,mixed>::wrap() expects (Closure(): iterable<TKey, T>)|iterable<TKey, T>, (Closure(): iterable<TKey, T>)|iterable<TKey, T> given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Collection/CollectionTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #1 $assertType of method Nexus\\Tests\\Collection\\CollectionTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Collection/CollectionTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #2 $file of method Nexus\\Tests\\Collection\\CollectionTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Collection/CollectionTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #1 $assertType of method Nexus\\Tests\\Option\\OptionTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Option/OptionTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #2 $file of method Nexus\\Tests\\Option\\OptionTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Option/OptionTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #1 $assertType of method Nexus\\Tests\\Result\\ResultTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Result/ResultTypeInferenceTest.php',
];
$ignoreErrors[] = [
'rawMessage' => 'Parameter #2 $file of method Nexus\\Tests\\Result\\ResultTypeInferenceTest::testFileAsserts() expects string, mixed given.',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/tests/Result/ResultTypeInferenceTest.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];