Skip to content

Integrates PHPStan for static analysis - #67

Merged
SergkeiM merged 1 commit into
masterfrom
feature/PHPStan
Aug 14, 2026
Merged

SergkeiM merged 1 commit into
masterfrom
feature/PHPStan

Conversation

@SergkeiM

Copy link
Copy Markdown
Owner

Introduces static analysis using PHPStan to enhance code quality and catch potential bugs earlier in the development cycle.

  • Adds PHPStan as a development dependency.
  • Configures PHPStan to run at level 8 on the src directory, ensuring strict code validation.
  • Integrates a new PHPStan job into the GitHub Actions CI workflow to automatically check code on every push, failing on any errors.
  • Provides composer analyse and ./dock analyse commands for convenient local static analysis execution.
  • Updates README.md with documentation on how to run PHPStan and its configuration details.
  • Refines various docblocks and adds explicit type hints across the codebase to comply with PHPStan's strict requirements.

Introduce PHPStan at level 8 to improve code quality and catch potential issues early.

- Add PHPStan as a dev dependency and configure it for the `src` directory.
- Integrate PHPStan into the CI pipeline, running on the lowest supported PHP version.
- Provide local execution via `composer analyse` and `./dock analyse`.
- Address initial static analysis warnings by improving type hints and PHPDocs.
@SergkeiM
SergkeiM merged commit ac16be2 into master Aug 14, 2026
9 checks passed
@SergkeiM
SergkeiM deleted the feature/PHPStan branch August 14, 2026 21:14
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