Skip to content

Conversation

luxemate
Copy link
Contributor

closes #367

@@ -13,10 +13,11 @@ abstract class Voter implements VoterInterface
/**
* Determines if the attribute and subject are supported by this voter.
*
* @param mixed $subject
* @phpstan-param TAttribute $attribute
Copy link
Member

Choose a reason for hiding this comment

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

This is a wrong fix because it's okay to ask about anything in supports. The TAttribute is typehinted only in voteOnAttribute because only valid TAttribute can be passed there. But in supports you can ask about whatever.

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.

2 participants