Skip to content
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 SimpleXMLElement::current() example #2766

Merged
merged 1 commit into from
Sep 16, 2023
Merged

Conversation

nielsdos
Copy link
Member

  1. There's a typo in the variable name
  2. The call returned NULL in PHP < 8.1. It throws an exception starting
    in 8.1. To keep the example simple and not introduce different
    variants based on the version, just remove the faulty call and
    expand upon the comment.

1) There's a typo in the variable name
2) The call returned NULL in PHP < 8.1. It throws an exception starting
   in 8.1. To keep the example simple and not introduce different
   variants based on the version, just remove the faulty call and
   expand upon the comment.
@Girgias Girgias merged commit 523e43a into php:master Sep 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants