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 is_a when used with Stringable classes #6775

Merged
merged 1 commit into from
Oct 28, 2021
Merged

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Oct 28, 2021

This will fix #6765

Psalm was being too smart while checking the stub. I asked for is_a with string first param to return false and it returned false even if the first param was a Stringable object.

This PR inverse the logic and return false if the first param is not an object

@orklah orklah merged commit d19018b into vimeo:master Oct 28, 2021
@weirdan weirdan added the release:fix The PR will be included in 'Fixes' section of the release notes label Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In @template T of X, X is not supposed to be the exact type
2 participants