Skip to content

Add PHPStan & PHP-CS-Fixer to CI#22

Merged
wtorsi merged 2 commits intomasterfrom
performance-optimisations
Feb 16, 2026
Merged

Add PHPStan & PHP-CS-Fixer to CI#22
wtorsi merged 2 commits intomasterfrom
performance-optimisations

Conversation

@wtorsi
Copy link
Contributor

@wtorsi wtorsi commented Feb 16, 2026

Summary

  • Add PHPStan (max level, zero errors without baseline) and PHP-CS-Fixer (@PER-CS/@symfony presets) as dev dependencies and CI steps
  • Fix all 117 PHPStan errors: proper PHPDoc types, self:: over static:: for private statics, instanceof narrowing for reflection types, type-safe cache loading
  • Apply code style fixes across all 52 source/test files (ordered imports, Symfony concatenation, Yoda conditions, native function invocation)
  • Add composer analyse, composer cs-check, and composer cs-fix scripts

Test plan

  • composer run-script analyse — PHPStan passes at max level (0 errors)
  • composer run-script cs-check — PHP-CS-Fixer reports 0 fixable files
  • composer run-script test — all 87 tests pass (326 assertions)

🤖 Generated with Claude Code

Dev and others added 2 commits February 16, 2026 18:04
Add static analysis (PHPStan at max level) and code style checking
(PHP-CS-Fixer with @PER-CS/@symfony presets) as composer scripts and
CI steps. Fix all 117 PHPStan errors across the codebase without
relying on a baseline.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wtorsi wtorsi merged commit 0f05967 into master Feb 16, 2026
1 check passed
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