diff --git a/security/voters.rst b/security/voters.rst index e6d1084603c..8959e0bf3cd 100644 --- a/security/voters.rst +++ b/security/voters.rst @@ -331,7 +331,7 @@ Then, override one or both of the following methods:: // this method returns true if the voter applies to the given object class/type; // if it returns false, Symfony won't call it again for that type of object - public function supportsAttribute(string $attribute): bool + public function supportsType(string $subjectType): bool { // you can't use a simple Post::class === $subjectType comparison // because the subject type might be a Doctrine proxy class