-
-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathphpstan.neon
More file actions
35 lines (27 loc) · 977 Bytes
/
phpstan.neon
File metadata and controls
35 lines (27 loc) · 977 Bytes
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
parameters:
level: 8
paths:
- src
excludePaths:
- src/compatibility.php
ignoreErrors:
- # Intentional design pattern for derive() and factory methods
identifier: new.static
paths:
- src/Caching/Cache.php
- src/Bridges/CacheLatte/Nodes/CacheNode.php
- # Intentional by-reference parameter for dependency injection
identifier: argument.byRef
path: src/Caching/Cache.php
- # Runtime validation for untyped array input
identifier: function.alreadyNarrowedType
path: src/Caching/Cache.php
- # PHPStan cannot narrow callable to array shape after is_array() in closure
identifier: offsetAccess.nonOffsetAccessible
path: src/Caching/Cache.php
- # Intentional: API for invoking arbitrary user callbacks, a signature would only add false positives at call sites
identifier: missingType.callable
path: src/Caching/Cache.php
-
identifier: method.childParameterType
path: src/Bridges/Psr/PsrCacheAdapter.php