-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
25 lines (24 loc) · 962 Bytes
/
Copy pathphpstan.neon
File metadata and controls
25 lines (24 loc) · 962 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
parameters:
level: 5
paths:
- src
- tests
ignoreErrors:
# GridCarbonData: defensive ?? null guards kept for when timezone-to-country
# maps drift during data updates. PHPStan sees offsets as always-existing
# because both const arrays are defined in the same class.
-
identifier: nullCoalesce.offset
path: src/GridCarbonData.php
-
identifier: identical.alwaysFalse
path: src/GridCarbonData.php
# Anonymous test classes use by-reference constructor properties (&$reported,
# &$messages, &$contexts) to communicate back to the test. PHPStan sees them
# as "only written, never read" because reads happen via the outer variable.
-
identifier: property.onlyWritten
path: tests/ReporterTest.php
-
identifier: property.onlyWritten
path: tests/SciProfilerTest.php