Due to PHP Bug #53727, is_subclass_of might return inconsistent results on some PHP versions if $supportedClass can be an interface. If so, you could instead use ReflectionClass::implementsInterface.
Loading history...
25
}
26
27
/**
28
* @{inheritDoc}
29
*/
30
public function vote(TokenInterface $token, $object, array $attributes)
31
{
32
// check if class of this object is supported by this voter