Skip to content

Update composer Q2-2025 [PHPSTAN v2, Rector V2] #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ynnoig
Copy link
Member

@ynnoig ynnoig commented Jun 18, 2025

This pull request includes updates to streamline CI workflows, enhance type safety with PHPStan assertions, and improve compatibility by upgrading dependencies. Additionally, it introduces new helper scripts and refactors existing code for better maintainability and clarity.

CI Workflow Updates:

  • .github/workflows/ci.yml: Updated script commands for CI jobs to use consistent naming conventions (e.g., composer run phpstan:check instead of composer run phpstan).

Dependency Upgrades:

  • composer.json: Upgraded dependencies to support newer versions, including beberlei/assert (^2.0 || ^3.0), phpunit/phpunit (^11.0 || ^12.0), and phpstan/phpstan (^2.0). Added phpstan/phpstan-beberlei-assert for enhanced PHPStan integration. [1] [2]

Helper Scripts:

  • composer.json: Refactored and added new composer scripts, such as run:all and test:all, to simplify running multiple checks and tests. Introduced platform configuration for PHP version 8.2.28.

Type Safety Enhancements:

Codebase Refactoring:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant