-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
28 lines (28 loc) · 1.39 KB
/
Copy pathphpstan.neon.dist
File metadata and controls
28 lines (28 loc) · 1.39 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
parameters:
level: max
paths:
- src
- tests
tmpDir: reports/phpstan
ignoreErrors:
# The bcmath stubs type every operand as numeric-string. The library validates the shape
# before a value reaches a calculator, and the Calculator contract documents it, so the
# narrowing cannot be expressed without PHPDoc, which is prohibited inside src/Internal/.
- identifier: argument.type
path: src/Internal/Backends/BcMathCalculator.php
# PHPDoc is prohibited on concrete collaborators inside src/Internal/, so the working
# lists inside the allocation algorithm are suppressed here rather than annotated.
- identifier: argument.type
path: src/Internal/Allocations/Allocation.php
- identifier: missingType.iterableValue
path: src/Internal/Allocations/Allocation.php
# Schoolbook multiplication fills the product by computed index, so PHPStan cannot prove the
# result is still a list. It is: every index from zero upward is written before it is read.
- identifier: argument.type
path: src/Internal/Backends/Magnitude.php
count: 1
# PHPDoc is prohibited inside tests/, so data provider return types are suppressed here
# rather than annotated.
- identifier: missingType.iterableValue
path: tests
reportUnmatchedIgnoredErrors: true