-
Notifications
You must be signed in to change notification settings - Fork 95
Test on PHP 8.1 #135
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Test on PHP 8.1 #135
Conversation
e31fa54
to
f638ca2
Compare
@cebe I've resolved conflict |
@@ -183,6 +183,7 @@ public function getErrors(): array | |||
* @return boolean true on success or false on failure. | |||
* The return value will be casted to boolean if non-boolean was returned. | |||
*/ | |||
#[\ReturnTypeWillChange] |
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.
given that this library is not compatible with PHP 5, as far as I see it would be better to make return types compatible instead of adding the annotation which only hides the deprecation warning but does not actually fix the problem.
see https://php.watch/versions/8.1/internal-method-return-types
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.
just seen that this is what #143 does, will check that in more detail later.
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 intended this as a middle step in order to keep BC.
After this there's #143 to be merged
Is there any update about this PR. I would really need it 😅 |
Hi, I want to avoid forking, thought about contributing, but I see fix is already here. Can I do anything to speed up 8.1 compatibility being merged? |
Upvote for this one to be merged sooner than later. Thanks! |
waiting for this one to be merged too |
I merged a different solution in #162, thanks for your contribution anyway! |
Replaces #143 that should be merged to php-openapi version that does not support old PHP versions.