Skip to content

Make PHPStan a usable signal - #3

Closed
Sandersm90 wants to merge 1 commit into
sync/upstream-safe-fixesfrom
chore/phpstan-usable-signal
Closed

Sandersm90 wants to merge 1 commit into
sync/upstream-safe-fixesfrom
chore/phpstan-usable-signal

Conversation

@Sandersm90

Copy link
Copy Markdown

Stacked on #2.

Makes the Linux-gated static analysis usable as a regression gate.

  • Add phpstan/phpstan-mockery so Mockery test doubles are understood (709 → 593 reported errors).
  • Add phpstan-baseline.neon capturing the remaining pre-existing level-9 errors, so the analysis exits clean and flags only new regressions. The baseline is the burn-down backlog.
  • Add composer scripts: test, stan, cs, cs:fix; stan bakes in --memory-limit=1G to avoid the default 128M OOM.

composer stan → No errors. composer test → green.

- Add phpstan/phpstan-mockery so Mockery-based test doubles are understood.
- Generate phpstan-baseline.neon capturing the 593 pre-existing level-9 errors
  so the analysis exits clean and flags only new regressions; the baseline is
  the burn-down backlog.
- Add composer scripts (test, stan, cs, cs:fix); stan bakes in --memory-limit=1G
  to avoid the default 128M OOM.
@Sandersm90 Sandersm90 closed this Oct 1, 2026
@Sandersm90 Sandersm90 reopened this Oct 1, 2026
@Sandersm90
Sandersm90 deleted the branch sync/upstream-safe-fixes October 1, 2026 12:53
@Sandersm90 Sandersm90 closed this Oct 1, 2026
@Sandersm90
Sandersm90 deleted the chore/phpstan-usable-signal branch October 1, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant