Skip to content

Make PHPStan a usable signal - #7

Merged
Sandersm90 merged 1 commit into
masterfrom
chore/phpstan-usable-signal
Oct 1, 2026
Merged

Sandersm90 merged 1 commit into
masterfrom
chore/phpstan-usable-signal

Conversation

@Sandersm90

Copy link
Copy Markdown

Re-opened as a fresh PR after #3 was auto-closed when its stacked base branch was deleted during the merge of #2. Same content.

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

  • Add phpstan/phpstan-mockery so Mockery test doubles are understood.
  • Add phpstan-baseline.neon capturing the pre-existing level-9 errors, so analysis exits clean and flags only new regressions (burn-down backlog).
  • Add composer scripts test, stan, cs, cs:fix; stan bakes in --memory-limit=1G.

CI was green on #3 before it closed.

- 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 merged commit 52b9eea into master Oct 1, 2026
10 checks passed
@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