Skip to content
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

Introduce PHPStan and adjust minimum requirements #320

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

lloc
Copy link
Contributor

@lloc lloc commented Feb 11, 2025

This PR introduces PHPStan with the initial level set to 1, with the goal of gradually increasing it to at least 5 or higher over time.

Changes and Improvements

  • PHPStan Integration

    • PHPStan can be executed locally using composer phpstan.
    • It has also been added as an additional GitHub workflow for automated checks.
  • Minimum PHP and WordPress Requirements

    • PHPStan requires at least PHP 7.2, so this PR suggests:
      • Dropping support for PHP 5.6.
      • Setting the minimum requirements to WordPress 5.1 and PHP 7.2.
    • As a sidenote, WordPress 5.1 includes a fix for a bug in the test suite introduced after version 4.x.
  • PHP 8.4 Compatibility

    • PHP 8.4 has been added to the test checks.

@stklcode stklcode added this to the 2.5.0 milestone Feb 11, 2025
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.

2 participants