-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fix getChildren must be compatible with SimpleXMLElement with PHP 8 #1603
Conversation
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.
More info on the error in PHP doc. The mandatory parameter needs to be optional to have signature compatibility.
anyone found the documentation for the SimpleXMLElement::getChildren method? |
@Flyingmana
|
thank you. The return type could lead to major issues for us here. |
…tible with SimpleXMLElement with PHP 8)
I can see how the this PR would fix the issue but making the parameter optional when it really is required is hard to stomach.. :) I propose an alternative in #1613 which changes the method name so it doesn't conflict with the parent method. It doesn't use "$this" so I made it static as well. |
closed in favor of #1613 Still, thank you a lot |
Description
This PR fix the following error with PHP 8 (#1602):
OpenMage 20.0.10 / PHP 8.0.5
Manual testing scenarios
Contribution checklist