minor #18928 add missing hint for vote() argument type (xabbuh)
This PR was merged into the 3.1 branch.
Discussion
----------
add missing hint for vote() argument type
| Q | A
| ------------- | ---
| Branch? | 3.1
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
This somehow got lost when the `3.0` branch was merged up.
Commits
-------
d14f0bf
add missing hint for vote() argument type
This commit is contained in:
commit
44f5283a21
|
@ -1042,6 +1042,9 @@ UPGRADE FROM 2.x to 3.0
|
|||
introduced in 2.8, and move your voting logic to the to the `supports($attribute, $subject)`
|
||||
and `voteOnAttribute($attribute, $object, TokenInterface $token)` methods.
|
||||
|
||||
* The `vote()` method from the `VoterInterface` was changed to now accept arbitrary
|
||||
types, and not only objects.
|
||||
|
||||
* The `supportsClass` and `supportsAttribute` methods were
|
||||
removed from the `VoterInterface` interface.
|
||||
|
||||
|
|
Reference in New Issue