Skip to content

Commit aa3d0c3

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: fix missing $ fix: use correct function and parameter name
2 parents f9563f5 + 8cfa7b1 commit aa3d0c3

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
@@ -345,7 +345,7 @@ Then, override one or both of the following methods::
345345

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

0 commit comments

Comments
 (0)