We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With the upgrade from 0.12.98 => 0.12.99 the SimpleXMLElement children returns self instead of static
SimpleXMLElement
children
https://phpstan.org/r/8b1dcfe2-b5bb-419e-9cf3-38b13748cc85
The return type of SimpleXMLElement->children() should be the static class. In this case MySimpleXML
SimpleXMLElement->children()
MySimpleXML
Yes, PHPStan helps me everyday. Static code analysis is one of the best features in the PHP economy in the last years. 🥳
The text was updated successfully, but these errors were encountered:
maybe duplicate with #5673
Sorry, something went wrong.
@marcelthole After the latest commit in dev-master, PHPStan now reports different result with your code snippet:
@@ @@ -19: Dumped type: SimpleXMLElement +19: Dumped type: MySimpleXML
Dumped type: MySimpleXML
Fixed: phpstan/phpstan-src@4653d15
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Bug report
With the upgrade from 0.12.98 => 0.12.99 the
SimpleXMLElement
children
returns self instead of staticCode snippet that reproduces the problem
https://phpstan.org/r/8b1dcfe2-b5bb-419e-9cf3-38b13748cc85
Expected output
The return type of
SimpleXMLElement->children()
should be the static class. In this caseMySimpleXML
Did PHPStan help you today? Did it make you happy in any way?
Yes, PHPStan helps me everyday. Static code analysis is one of the best features in the PHP economy in the last years. 🥳
The text was updated successfully, but these errors were encountered: