Exclude deploy.php from PHPStan¶
Priority: 🟢 P3 - LOW Status: Planning Related Analysis: phpstan-rector-analysis-overview.md
Problem Statement¶
115 PHPStan errors in deploy.php - a deployment script using Deployer library.
Why Exclude?¶
- Not part of application runtime code
- Uses Deployer library with dynamic functions
- Not worth the effort to fix
- Clutters PHPStan output (18% of all errors)
- Deployment scripts have different quality requirements
Solution¶
Update phpstan.neon to exclude deployment-related files.
Implementation¶
Step 1: Update phpstan.neon¶
parameters:
paths:
- src
- tests
excludePaths:
- deploy.php
- config/services.php # Also has Rector issues
Step 2: Verify¶
Should see error count drop from 635 to ~520.
Step 3: Commit¶
Success Criteria¶
- PHPStan no longer analyzes deploy.php
- Error count reduced by ~115
- Cleaner PHPStan output
Estimated Effort¶
15 minutes
Notes¶
This is purely cleanup - makes other PHPStan errors easier to see and focus on actual application code.