You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The phpstan-baseline-per-identifier library currently only supports PHP 8.0. Unfortunately, one of my current projects is limited to using PHP 7.4. This prevents me from utilizing the valuable features of this library.
Problem
The
phpstan-baseline-per-identifier library
currently only supports PHP 8.0. Unfortunately, one of my current projects is limited to using PHP 7.4. This prevents me from utilizing the valuable features of this library.Suggestion
To enable the use of PHP ^8 features while maintaining backward compatibility with PHP 7.4, I'd propose implementing a strategy similar to the one outlined in this blog post: https://tomasvotruba.com/blog/how-to-release-php-81-and-72-package-in-the-same-repository/ and done in this repo: https://github.com/TomasVotruba/cognitive-complexity/blob/main/.github/workflows/downgraded_release.yaml
This approach involves:
If the project maintainers are interested in exploring this option, I would be happy to contribute a pull request to implement it.
The text was updated successfully, but these errors were encountered: