-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpstan.neon
More file actions
22 lines (17 loc) · 758 Bytes
/
phpstan.neon
File metadata and controls
22 lines (17 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
parameters:
level: 6 # ✅ Reasonable for a Laravel project (go up to 8+ for stricter static analysis)
paths:
- app # ✅ Standard — analyzes all app code
bootstrapFiles:
- bootstrap/app.php # ✅ Correct — loads Laravel's autoloader and service container
excludePaths:
- tests # ✅ Tests are usually excluded (unless you're analyzing them too)
- bootstrap/cache # ✅ Should always be excluded
- storage # ✅ Should always be excluded
# Type coverage configuration - be reasonable about expectations
type_coverage:
param: 85 # Lower from 99% to 85% which is more realistic
return: 85
property: 85
# Treat PHPDoc types as certain to reduce false positives
treatPhpDocTypesAsCertain: true