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

\DomDocument::save() is considered not returning false #6482

Closed
kissifrot opened this issue Jan 28, 2022 · 4 comments
Closed

\DomDocument::save() is considered not returning false #6482

kissifrot opened this issue Jan 28, 2022 · 4 comments
Labels

Comments

@kissifrot
Copy link

Bug report

Hello,
It looks like \DomDocument::save() isn't expected to return false by phpstan

Code snippet that reproduces the problem

Snippet

I'm getting an error Method HelloWorld::storePayload() never returns false so it can be removed from the return type.

Expected output

Method signature is public DOMDocument::save(string $filename, int $options = 0): int|false , so indeed it can return false 😉

Did PHPStan help you today? Did it make you happy in any way?

Sure! :)

@staabm
Copy link
Contributor

staabm commented Jan 28, 2022

@kissifrot
Copy link
Author

Sure: phpstan/phpstan-src#956

@ondrejmirtes
Copy link
Member

Fixed by phpstan/phpstan-src#956

@github-actions
Copy link

github-actions bot commented Mar 2, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants