mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-20 12:12:50 +00:00
cs: Switch to a stricter way of coding - this might break in a lot of places.
This commit is contained in:
@@ -35,8 +35,8 @@ abstract class AbstractChillVoter extends Voter implements ChillVoterInterface
|
||||
|
||||
// @TODO: getSupportedAttributes() should be created in here and made abstract or in ChillVoterInterface.
|
||||
// @TODO: getSupportedClasses() should be created in here and made abstract or in ChillVoterInterface.
|
||||
return in_array($attribute, $this->getSupportedAttributes($attribute))
|
||||
&& in_array(get_class($subject), $this->getSupportedClasses());
|
||||
return in_array($attribute, $this->getSupportedAttributes($attribute), true)
|
||||
&& in_array(get_class($subject), $this->getSupportedClasses(), true);
|
||||
}
|
||||
|
||||
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
|
||||
|
Reference in New Issue
Block a user