Skip to content

Run PHPStan in CI - #21

Merged
ajaydsouza merged 1 commit into
mainfrom
ci/phpstan-and-phpcs
Oct 21, 2026
Merged

ajaydsouza merged 1 commit into
mainfrom
ci/phpstan-and-phpcs

Conversation

@ajaydsouza

Copy link
Copy Markdown
Contributor

Adds .github/workflows/phpstan.yml, which runs vendor/bin/phpstan analyse (level 5, phpstan.neon.dist) on every push and pull request with GitHub annotations. PHPStan previously ran only locally, which let the function.alreadyNarrowedType error fixed in #20 reach main.

phpcs was checked at the same time and needs no change: with --parallel=1 it processes all 46 PHP files (the "8 / 8" progress seen earlier counts the ruleset's 8 parallel batches, not files), and a deliberately bad probe file produces 9 errors and 2 warnings under phpcs.xml.dist.


Generated by Claude Code

@ajaydsouza
ajaydsouza merged commit 20317d5 into main Oct 21, 2026
38 checks passed
@ajaydsouza
ajaydsouza deleted the ci/phpstan-and-phpcs branch October 23, 2026 14:02
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