Skip to content

Add shared PHP syntax lint command - #5

Merged
brianvarskonst merged 2 commits into
mainfrom
feat/shared-linters
Oct 1, 2026
Merged

brianvarskonst merged 2 commits into
mainfrom
feat/shared-linters

Conversation

@brianvarskonst

Copy link
Copy Markdown
Member

Add qa lint:php so consumers no longer need their own PHP syntax-check scripts. The command uses the running PHP interpreter, checks files without executing them, propagates failures, and supports package-relative exclusions for disposable fixtures.

The command is opt-in; existing aggregate gates retain their behavior. QA adopts it in its own Composer gate. Doctor no longer counts qa qa as evidence that an additional opt-in gate runs.

Validation: composer qa passed on PHP 8.5.9: PHPCS, PHPStan maximum level, and 21 tests / 84 assertions. Tests cover syntax failures, real exit codes, paths containing spaces, public entrypoints, exclusions, symlinks, and doctor adoption.

@brianvarskonst
brianvarskonst merged commit 49ad8fc into main Oct 1, 2026
3 checks passed
@brianvarskonst
brianvarskonst deleted the feat/shared-linters branch October 1, 2026 16:55
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