Static Analysis and Code Quality

March 25, 2026 ยท View on GitHub

This project uses PHPStan for static analysis and PHPCS for code style checking.

PHPStan (Static Analysis)

We use PHPStan level 9 for strict type checking.

Run Locally

make stan

Configuration

See phpstan.neon for configuration.

Code Style (PHPCS)

We follow PSR-12 coding standards.

Check Code Style

make sniff

Fix Code Style

make cs

CI Integration

The CI pipeline runs:

  1. Unit tests (PHPUnit)
  2. Static analysis (PHPStan)
  3. Code style check (PHPCS)

All checks must pass before merging.