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

push original callable when creating callable-object in order to keep return type #11354

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Mar 10, 2025

This should fix #11062 (technically not optimally, when removing array from callable, Psalm transform it to callable-object|callable-string, however, callable-object can have a return type, callable-string can't.

Psalm should probably complain that the callable-string doesn't allow to check the return type but somehow it doesn't)

@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Mar 10, 2025
@orklah orklah merged commit e856423 into vimeo:6.x Mar 10, 2025
50 of 52 checks passed
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.

Psalm don't keep callable or Closure type in union types after condition
1 participant