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

fix: Amends psalm assertion syntax on Uuid::isValid() to prevent incorrect type inference #486

Merged
merged 2 commits into from
Jan 10, 2023

Conversation

gsteel
Copy link
Contributor

@gsteel gsteel commented Jan 10, 2023

Description

The reason for this change is described in #478

Closes #478

@gsteel gsteel requested a review from ramsey as a code owner January 10, 2023 16:55
@gsteel
Copy link
Contributor Author

gsteel commented Jan 10, 2023

Just realised that I should be able to remove the PHPStan suppression shipped in the original PR - I'll rebase and try it…

@gsteel gsteel force-pushed the amend-psalm-assertion-for-is-valid branch 2 times, most recently from 75c862c to 85828da Compare January 10, 2023 17:04
@gsteel
Copy link
Contributor Author

gsteel commented Jan 10, 2023

The previous error suppression will have to stay for now :(

@ramsey
Copy link
Owner

ramsey commented Jan 10, 2023

I'm not sure why the workflow didn't run when you did the force push. Normally, that should have triggered a build.

@gsteel
Copy link
Contributor Author

gsteel commented Jan 10, 2023

I've pushed an additional test case to trigger CI. GHA was being weird for me on other repos earlier!

@ramsey
Copy link
Owner

ramsey commented Jan 10, 2023

Thank you for contributing! 🎉

@ramsey ramsey merged commit 4a14ce0 into ramsey:4.x Jan 10, 2023
@gsteel gsteel deleted the amend-psalm-assertion-for-is-valid branch January 10, 2023 22:26
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.

Misused Psalm Assertion for isValid() method?
2 participants