Skip to content

test(psalm): fix missing template-implements hint #217

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

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Nov 14, 2023

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

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

Your da 💣

@blizzz blizzz merged commit 54019e0 into master Nov 14, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix/noid/MissingTemplateParam branch November 14, 2023 20:35
@@ -33,6 +33,9 @@
use OCP\WorkflowEngine\Events\RegisterOperationsEvent;
use Psr\Container\ContainerInterface;

/**
* @template-implements IEventListener<Event>
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be @template-implements IEventListener<RegisterOperationsEvent> ideally. (Psalm may complain about the instanceof check below being redundant, but it makes sure that psalm checks this gets registered as a listener only for the right event type)

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. Most usages seem to be not ideal then, not just here. Thanks for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants