-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
phpstan.neon
33 lines (33 loc) · 1.66 KB
/
phpstan.neon
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
parameters:
level: 8
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: true
checkMissingIterableValueType: false
paths:
- %currentWorkingDirectory%/src/
- %currentWorkingDirectory%/tests/
ignoreErrors:
-
message: ~has no return type specified~
path: %currentWorkingDirectory%/tests/*
-
message: '#assertContains|assertInternalType|assertStringContainsString|assertIsArray|expectExceptionMessage#'
path: %currentWorkingDirectory%/tests/*
-
message: ~Call to an undefined static method~
path: %currentWorkingDirectory%/tests/StaticArrayyTest.php
# false-positive?
- '/function call_user_func expects callable.*array\{.*\} given/'
- '/function call_user_func_array expects callable.*array\{.*\} given/'
- '/\(array<TKey of \(int\|string\), T>\) does not accept array<TKey of \(int\|string\)/'
- '/\(array<TKey of \(int\|string\), T>\) does not accept array<int, T>/'
- '/\(array<TKey of \(int\|string\), T>\) does not accept array<int\|string, T>/'
- '/array_map expects \(callable\(mixed\):/'
# ignore gernal errors
- '/Unsafe usage of new static/'
- '/should be compatible with return type \(bool\) of method ArrayObject/'
# ignore Iterator stuff
- '/__construct\(\) has parameter \$iteratorClass with generic/'
- '/create\(\) has parameter \$iteratorClass with generic/'
- '/parameter \$iteratorClass with generic class Arrayy\\ArrayyIterator/'
- '/generic class Arrayy\\ArrayyIterator does not specify its types/'