Skip to content

Commit 44abcda

Browse files
committed
minor #21069 [Security] fix: use correct function and parameter name (alessandro-podo, Alessandro Podo)
This PR was merged into the 6.4 branch. Discussion ---------- [Security] fix: use correct function and parameter name #21040 while merging this, the same function name was used 2 times. Commits ------- 2ee7578 fix missing $ c8b6263 fix: use correct function and parameter name
2 parents 10bbee3 + 2ee7578 commit 44abcda

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)