Skip to content

Conversation

roxblnfk
Copy link
Member

@roxblnfk roxblnfk commented Sep 14, 2025

Q A
Is bugfix?
New feature?
Breaks BC?

PHPStrom doesn't accept callable(...): TReturn that's why I had to use @template without psalm prefix

* @param callable $callable callable to be invoked.
* @template TReturn
*
* @param callable(): TReturn $callable callable to be invoked.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's a good idea. We are going to render phpdoc with phpdocumentor and alike tools for API docs, and it does not support Psalm annotations as far as I know. Same for non-PhpStorm editors/IDEs.

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