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

Commits on Sep 13, 2023

  1. Fix SimpleXMLElement::current() example

    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.
    nielsdos committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    0fc3658 View commit details
    Browse the repository at this point in the history