Skip to content

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

Merged
orklah merged 2 commits intovimeo:6.xfrom
orklah:11062
Mar 10, 2025
Merged

push original callable when creating callable-object in order to keep return type#11354
orklah merged 2 commits intovimeo:6.xfrom
orklah:11062

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