PHPStan exits with no output at all when a scaffolded path like src is deleted later
- When
Running
composer phpstan/composer qualityafter removing an emptysrc/{Domain,...}directory that kalimera scaffolded for the Core structure, once the project ends up not using it.- Why it happens
QualityToolsInstall::stripSrcPathUnlessScaffoldedonly strips the- srcpath fromphpstan.neon.dist(andrector.php) automatically when the Core structure was never chosen during scaffolding. If it was scaffolded andsrc/is deleted afterwards,phpstan.neon.diststill lists a path that no longer exists on disk, and PHPStan — run through Sail's docker exec — fails on that with a bare exit code 1 and zero output instead of a clear error, which reads as a crash rather than a config problem.- Fix
Remove the stale
- srcline fromphpstan.neon.dist(and__DIR__.'/src'fromrector.phpif present) to match the current codebase, or restore an emptysrc/.gitkeepif the Core structure is still wanted. Confirm withsail composer phpstan— it should print real output (pass, or a list of errors) instead of failing silently. This isn't a bug in kalimera's own scaffolding logic (a fresh scaffold that skips Core strips the path correctly) — it's a trap for whoever deletessrc/by hand after the fact without touching the generated configs.
Still stuck? Open an issue with your --log transcript.