Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
37 lines (31 loc) · 1.49 KB
/
Copy pathphpstan.neon
File metadata and controls
37 lines (31 loc) · 1.49 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
parameters:
level: 6
paths:
- Zebra_Session.php
- tests
# phpstan learns a constant exists only by executing the define(). tests/settings.php declares them and
# does nothing else, so running it keeps the analysis independent of the database.
bootstrapFiles:
- tests/settings.php
excludePaths:
# both are written by a run rather than committed, so they may not be there at all - "(?)" is what
# keeps phpstan from stopping over an excluded path it cannot find
- tests/tmp (?)
- tests/coverage-html (?)
# phpcs sniffs, which phpstan cannot reason about without the whole of PHP_CodeSniffer loaded -
# its tokens are constants defined at runtime, so even T_CLOSURE comes back as "not found"
- tests/standards
# written to the library's own floor rather than to 7.3, and never loaded by the suite
- tests/legacy
# a development script rather than suite code - its guard against an emptied mutation list reads as dead
- tests/mutate.php
ignoreErrors:
# The library ships and is held to the full level. The suite is held to everything except declaring
# types on its own methods - a test method returns nothing and says so by being a test. Everything
# else phpstan finds there is still reported.
-
identifier: missingType.return
path: tests/*
-
identifier: missingType.parameter
path: tests/*