Skip to content

Commit c8b6263

Browse files
alessandro-podoAlessandro Podo
authored and
Alessandro Podo
committed
fix: use correct function and parameter name
1 parent 10bbee3 commit c8b6263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/voters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ Then, override one or both of the following methods::
331331

332332
// this method returns true if the voter applies to the given object class/type;
333333
// if it returns false, Symfony won't call it again for that type of object
334-
public function supportsAttribute(string $attribute): bool
334+
public function supportsType(string subjectType): bool
335335
{
336336
// you can't use a simple Post::class === $subjectType comparison
337337
// because the subject type might be a Doctrine proxy class

0 commit comments

Comments
 (0)