-
Notifications
You must be signed in to change notification settings - Fork 258
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
Compatability with php 8.4 #543
Conversation
Deprecate implicitly nullable parameter types https://wiki.php.net/rfc/deprecate-implicitly-nullable-types
Hi I have changed composer and git workflow to support PHP 7.1 and above, since nullable types cant be use in older versions of PHP. |
PHP 8.4 will be released in a couple of weeks. Can we get this merged? If dropping support PHP older than 7.1 is a problem, another possible approach is to simply remove the native typehint entirely, and document the types via PHPDoc. |
Trying to decide if i should release this as a Old PHP version installs are negligible these days - https://packagist.org/packages/jaybizzle/crawler-detect/php-stats Anyone got any thoughts on this? |
Bumping dependency requirements is usually not considered a breaking change. If v1.3 was to be released requiring PHP 7.1, anyone depending on On the other hand, if you want to continue providing patches for older PHP versions, bumping the major to 2 will ease your work in backporting patches between versions. So it depends on what you want to do and promote. As a fellow open source maintainer, I would recommend you make your life easier and simply drop support for older versions. PHP 7.1 is 8 years old, people have had time to update. As a consumer of this library, I don't have an opinion. Both options work for me and will be as easy to update. |
Thanks for your inout @acelaya I think we will go down the |
Is there anything else that is preventing this to be merged? |
Just time. Ill try and get it sorted this week 🙏 |
In case anyone else is still a bit blocked by this, I have just published a fork which includes these changes: I have not marked it as a replacement of |
Finally released Sorry for the delay. |
Deprecate implicitly nullable parameter types
https://wiki.php.net/rfc/deprecate-implicitly-nullable-types