-
Notifications
You must be signed in to change notification settings - Fork 16
ci: add tests for PHP 8.5 #338
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
base: master
Are you sure you want to change the base?
Conversation
|
Hey thank you for this PR! 🚀 If not, if it's only warnings, should we still enable to be a least aware that there is something to do? |
.github/workflows/checks.yml
Outdated
| run: composer test | ||
| - | ||
| name: Run phpstan | ||
| if: ${{ matrix.php-version <= 8.4 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this it good idea, it should pass all PHP versions. Rather fix the issues.
|
Running Phpstan 1|2 to Support all PHP Versionen and run will raise different Warnings.
I can give it a try later.
In my opinion phpstan should not run for all PHP versions.
I guess bumping min Version of PHP to 7.4 ist not an Option for you
|
|
Just had a look at the official PHP support site, 7.4 and even 8.0 are end of life already. we shouldn’t worry to much about supporting unsupported PHP versions on my opinion. https://www.php.net/supported-versions.php what do you think @janedbal ? |
|
We can drop old PHP if it causes issues. But it does not. PHPStan 1.12.32 works well on PHP 8.5, just upgrade it. |
|
Sorry i did not noticed that it used composer install and composer.lock needs to be regnerated. |
|
Something like the following could work: $isArgvSet = array_key_exists('argv', get_defined_vars());
$args = $isArgvSet ? $argv : [];
$result = Cli::run($args);Note: I did not do PHP for a lot of years, so there might be better ways and I did not test it. |
PHPStan run for PHP 8.5 has a lot of warnings.
That is the reason it is disabled.
If PHP min is changed to 7.4, PHPStan could be bumped to version 2.