Skip to content

Releases: Digital-Process-Tools/mcp-phpstan-warm

v0.6.0

21 Jun 19:48
d6cad68

Choose a tag to compare

Fixed

  • Cross-file reflection staleness: warm no longer silently misses errors cold catches. The warm worker memoises a class's reflection for its whole life and re-analysing a file only re-reads that file's AST — never its dependencies'. So after a dependency was edited (a method removed), re-analysing a dependent that calls it returned 0 errors while a cold phpstan run reported the now-undefined call (the silent sibling of the loud rector failure, claude-supertool#273). PHPStan's worker has no per-class invalidation, so PhpstanRunner now respawns the worker when a non-target analysed file changed since boot. Scoped: the analysis target is excluded, so iterating on a single file never respawns and stays fully warm — the ~20s cold boot is paid only when switching to a different file after editing a dependency. The check stats only the analysed working set, not the whole --paths tree.

Added

  • testStaleDependencyIsCaughtWhenDependentReanalysed regression (proven red without the respawn, green with it).