Authorization/Voter/PermissionVoter.php
protected function isSubjectSupported($subject)
    {
        if (null === $subject || \is_string($subject) || $subject instanceof FieldVote || \is_object($subject)) {
            return true;
        }

        return \is_array($subject)
            && isset($subject[0], $subject[1])

            && (\is_string($subject[0]) || \is_object($subject[0]))
            && \is_string($subject[1]);
    }
protected function isSubjectSupported($subject)
    {
        if (null === $subject || \is_string($subject) || $subject instanceof FieldVote || \is_object($subject)) {
            return true;
        }

        return \is_array($subject)
            && isset($subject[0], $subject[1])

            && (\is_string($subject[0]) || \is_object($subject[0]))
            && \is_string($subject[1]);
    }
protected function isSubjectSupported ( $ subject ) { if ( null === $ subject || \ is_string ( $ subject ) || $ subject instanceof FieldVote || \ is_object ( $ subject ) ) { return true ; } return \ is_array ( $ subject ) && isset ( $ subject [ 0 ] , $ subject [ 1 ] ) && ( \ is_string ( $ subject [ 0 ] ) || \ is_object ( $ subject [ 0 ] ) ) && \ is_string ( $ subject [ 1 ] ) ; }
Check if the subject is supported.

@param null|FieldVote|mixed $subject The subject

@return bool
Check if the subject is supported .