SimpleXMLElement::saveXML: narrow return type based on argument #7749
-
|
PHPStan does not yet narrow down the return type based on the argument of Example https://phpstan.org/r/cbf744fa-0c8d-4fb2-9838-8f7d02199f42 |
Beta Was this translation helpful? Give feedback.
Answered by
rvanvelzen
Aug 5, 2022
Replies: 1 comment 1 reply
-
|
There already is a stub for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
herndlm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There already is a stub for
SimpleXMLElementiniterable.stub, so addingsaveXML/asXMLshould be the easiest fix.