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

Declare conditional return types #585

Merged
merged 2 commits into from
Apr 26, 2024
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Apr 23, 2024

with the added types, PHPStan, psalm and other static analysis tools can assist the user of the library better.
meaning even if the phpdoc is prefixed with @phpstan it will work for the other ones.

the tooling will realize when the call to the changed functions will never return or when a string is returned.

@staabm staabm changed the title Declare conditional return type Declare conditional return types Apr 23, 2024
@staabm staabm marked this pull request as ready for review April 23, 2024 07:30
@pitbulk pitbulk merged commit b58c5ee into SAML-Toolkits:master Apr 26, 2024
0 of 6 checks passed
@staabm staabm deleted the patch-1 branch April 26, 2024 23:17
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