Skip to content

Commit 4af1729

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: fix missing $ fix: use correct function and parameter name
2 parents e2e93d8 + b63ee83 commit 4af1729

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)