Skip to content

Conversation

@Firehed
Copy link
Contributor

@Firehed Firehed commented Sep 20, 2022

The signature in the documentation code for several methods indicate what was in the file, but the Return Values (correctly) indicates that those same functions and methods can do the "return false on failure" thing (except one of them, which instead returns null on failure 🤦 )

The signature in the documentation _code_ says it returns string, but the Return Values (correctly) indicates that it returns string or false on failure.
There were several other signature mismatches, including a couple missing functions.
@Firehed Firehed changed the title gnupg::geterror can return false gnupg::geterror (etc) can return false Sep 21, 2022
@ondrejmirtes ondrejmirtes merged commit 8b99661 into phpstan:1.8.x Sep 21, 2022
@ondrejmirtes
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants