-
Notifications
You must be signed in to change notification settings - Fork 837
Move iterator methods of SimpleXMLIterator to SimpleXMLElement #2161
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
Conversation
c4f9956 to
0c7358c
Compare
|
Thanks for tackling this! (this PR would fix #1640 and #1784) I'm not quite sure how to handle that method pull-up. Do we need comprehensive changelog entries? What to do with versions.xml (currently, the methods are still listed for |
Yes, I had similar questions, and was hoping to get the answers from you 😅 But anyway, here are my ideas:
|
0c7358c to
2ec2ca1
Compare
2ec2ca1 to
00dcc5a
Compare
| <refsect1 role="returnvalues"> | ||
| &reftitle.returnvalues; | ||
| <para> | ||
| Returns the current element as a <classname>SimpleXMLElement</classname> object, or an <classname>Error</classname> | ||
| is thrown on failure. | ||
| </para> | ||
| </refsect1> |
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.
The throw an error shouldn't be mentioned in the return section but in a standard new Error section.
| Before PHP 8.0, <methodname>SimpleXMLElement::current</methodname> was declared on | ||
| <classname>SimpleXMLIterator</classname>, available as of PHP 5. |
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.
| Before PHP 8.0, <methodname>SimpleXMLElement::current</methodname> was declared on | |
| <classname>SimpleXMLIterator</classname>, available as of PHP 5. | |
| Prior to PHP 8.0, <methodname>SimpleXMLElement::current</methodname> was only | |
| declared on the subclass <classname>SimpleXMLIterator</classname>. |
|
I think I managed to address the feedback in a new commit (+ rebased to current master) |
php/php-src#5234