-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
69 lines (60 loc) · 3.09 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
69 lines (60 loc) · 3.09 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
parameters:
level: max
paths:
- src
- tests
ignoreErrors:
# PHPDoc cannot express iterable value types inside src/Internal/ and tests/, nor on the public
# constructor parameters Mapper::$mappings and Configuration::$omittedFields (PHPDoc on
# constructors is prohibited), so the typed-array errors are confined to where they fire.
- identifier: missingType.iterableValue
path: src/Internal/
- identifier: missingType.iterableValue
path: tests/
- identifier: missingType.iterableValue
path: src/Mapper.php
- identifier: missingType.iterableValue
path: src/Configuration.php
# PHPDoc cannot express generic class types inside src/Internal/ and tests/.
- identifier: missingType.generics
path: src/Internal/
- identifier: missingType.generics
path: tests/
# Reflection-driven mapping reads mixed values from untyped sources inside src/Internal/ and tests/.
- identifier: argument.type
path: src/Internal/
- identifier: argument.type
path: tests/
# Reflection-driven mapping returns concrete types PHPStan cannot infer from mixed input, both
# inside src/Internal/ and on the public facade that forwards engine results (Mapper).
- identifier: return.type
path: src/Internal/
- identifier: return.type
path: src/Mapper.php
# Subtype and Layout mappings forward a class name resolved at runtime (from an untyped source
# or the target type string) into the generic reflectionRead, so PHPStan cannot bind the
# template type T. The forwarded value is always a valid class-string.
- identifier: argument.templateType
path: src/Internal/
# Reflection-driven hydration casts values typed as mixed into the property's declared scalar type.
- identifier: cast.string
path: src/Internal/
# Reflection-driven mapping accesses offsets of sources whose runtime shape is mixed.
- identifier: offsetAccess.invalidOffset
path: src/Internal/
# Reflection-driven mapping invokes methods on values resolved at runtime from mixed.
- identifier: method.nonObject
path: src/Internal/
- identifier: instanceof.invalidExprType
path: src/Internal/
# The scalar-codec list on the class descriptor cannot carry its value type (PHPDoc on the
# src/Internal/ concrete descriptor is prohibited), so reading the decode and encode method
# names off each ScalarCodec is seen as property access on mixed.
- identifier: property.nonObject
path: src/Internal/Deserialization/Resolvers/ScalarCodecResolver.php
- identifier: property.nonObject
path: src/Internal/Serialization/Encoders/ScalarCodecEncoder.php
# Late static binding in the Refunds test fixture mirrors tiny-blocks/collection's extension-point shape.
- identifier: new.static
path: tests/Models/Refunds.php
reportUnmatchedIgnoredErrors: true