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 getChildren must be compatible with SimpleXMLElement with PHP 8 #1613

Merged
merged 2 commits into from
May 23, 2021

Conversation

colinmollenhour
Copy link
Member

…th SimpleXMLElement with PHP 8)

See #1603

@Flyingmana
Copy link
Contributor

I think it would still be good to keep the

public function getChildren($source=null)

but throwing a deprecation error, if the parameter is set to avoid surprises for changed behavior in case anyone was using it.
And if its not set, call the parent method, so its still exposed for usage.

@colinmollenhour
Copy link
Member Author

Added back the method with deprecated notice.

Copy link
Contributor

@kiatng kiatng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer this over PR #1603.

@Flyingmana Flyingmana added the PHP 8 Related to PHP8 label May 23, 2021
@Flyingmana Flyingmana changed the title Alternative solution for #1603 (Fix getChildren must be compatible wi… Fix getChildren must be compatible with SimpleXMLElement with PHP 8 May 23, 2021
@Flyingmana Flyingmana merged commit 70248fc into OpenMage:1.9.4.x May 23, 2021
@github-actions
Copy link
Contributor

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
6 runs  ±0  4 ✔️ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 70248fc. ± Comparison against base commit 434e403.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Api PageRelates to Mage_Api PHP 8 Related to PHP8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants