-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
40 lines (32 loc) · 1.14 KB
/
phpstan.neon.dist
File metadata and controls
40 lines (32 loc) · 1.14 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
includes:
- vendor/larastan/larastan/extension.neon
- phpstan-local.neon
# Optional stricter rules if desired in the future:
# - vendor/larastan/larastan/rules.neon
# - vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
# Increased strictness as code stabilizes
level: 8
paths:
- src
- tests
tmpDir: var/phpstan
# Optional: use composer autoload (harmless for packages, helpful for richer analysis)
bootstrapFiles:
- vendor/autoload.php
# Keep it minimal for a library; tighten rules as code grows
checkMissingVarTagTypehint: false
treatPhpDocTypesAsCertain: false
reportUnmatchedIgnoredErrors: false
# Ignore vendor for library analysis and Pest bootstrap
excludePaths:
- vendor
- tests/Pest.php
# Improve inference for private properties
inferPrivatePropertyTypeFromConstructor: true
# Temporary ignore: env() used in test bootstrap; acceptable in test context
ignoreErrors:
- identifier: larastan.noEnvCallsOutsideOfConfig
path: tests/TestCase.php
# Consider tightening over time (kept off by default to reduce noise for new packages):
# checkMissingIterableValueType: true