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 callable return type #11

Merged
merged 1 commit into from
Apr 27, 2024
Merged

Declare callable return type #11

merged 1 commit into from
Apr 27, 2024

Conversation

Biont
Copy link
Collaborator

@Biont Biont commented Jun 16, 2022

The subclass may declare a more specific return type. Explicitly annotating it makes psalm aware that FuncService can only ever return callables and thus prevents a MixedFunctionCall error

The subclass may declare a more specific return type. Explicitly annotating it makes psalm aware that FuncService can only ever return callables and thus prevents a MixedFunctionCall error
@XedinUnknown
Copy link
Member

Very nice, sorry I hadn't seen this before. Please update the changelog; I'll be happy to merge it then.

@XedinUnknown XedinUnknown merged commit ca179a3 into Dhii:0.1.x Apr 27, 2024
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.

3 participants