From f8dd3227c43a65a0cb8a0119fb0886c86a41f729 Mon Sep 17 00:00:00 2001 From: mohamed gasmi Date: Fri, 19 Aug 2022 16:50:31 +0200 Subject: [PATCH] [Security] update Voter return type --- security/voters.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/voters.rst b/security/voters.rst index d96be9bf6c4..528a654eb17 100644 --- a/security/voters.rst +++ b/security/voters.rst @@ -56,8 +56,8 @@ which makes creating a voter even easier:: abstract class Voter implements VoterInterface { - abstract protected function supports($attribute, $subject); - abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token); + abstract protected function supports($attribute, $subject): bool; + abstract protected function voteOnAttribute($attribute, $subject, TokenInterface $token): bool; } .. _how-to-use-the-voter-in-a-controller: