-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Support for range integers + drop support for PHP 7.2 & 7.3 #2236
Conversation
@DjordyKoert That feature would work on any versions except the lowest ones (the single CI job with
but I know bumping PHP to next major version could be to too radical, so my alternative would be bumping only Would do you think? |
I wouldn't even mind bumping minimum php version to 7.4. Both 7.2 & 7.3 barely get any installs anymore see packagist stats. |
Cool 👍 Would you mean just only bumping it up in composer or also any other related adjustments in code (like getting rid of some backward-compatible workarounds etc.)? |
I don't think we have any real backward-compatible workarounds, only in a few tests I think it looks like.
Feel free to remove this, otherwise I will remove them myself 😃 |
👍 thanks for replying I'm going to handle that tomorrow 😉 |
I think we should also bump |
@DjordyKoert in general PR is ready for review. Finally, I decided to bump only to PHP 7.3 (plus needed composer dependencies) which is enough for this feature. However, I noticed failed pipelines (on SF >= 6.3) which are not related to my changes. It seems that the change which broke them was introduced in https://github.com/nelmio/NelmioApiDocBundle/actions/runs/8231364006/job/22506509816 but I'm not sure how it should be fixed. |
I already have an issue open at swagger-php about this :) zircote/swagger-php#1556 |
LGTM, I would still like to drop support for PHP 7.3 in this and make PHP 7.4 the minimum supported version would you like & be able to do this? :) Additionally an update inside the changelog.md would be appreciated. |
👍 will handle that |
@DjordyKoert adjusted to PHP 7.4 as minimum version, but I'm struggling with 2 errors in Do you have any idea what else I could check? |
It looks like there is a caching issue. On my local machine the first test ( Rerunning the full |
cool, thanks for help with that :) |
Co-authored-by: Djordy Koert <[email protected]>
@DjordyKoert thanks for approving ❤️ will zircote/swagger-php#1556 be a blocker for merging it or not? |
Nope! 😄 |
sorry, I meant swagger-php issue (comment updated) 😅 |
Still a nope hahaha. That is an issue on its own. |
Thanks a lot @bnowak for this new feature + the other things that you were willing to pick up ❤️ |
It adds support for some basic https://phpstan.org/writing-php-code/phpdoc-types#integer-ranges.