src/LightSaml/SamlConstants.php
public static function isProtocolValid($value)
    {
        static $arr = array(
            self::PROTOCOL_SAML2,
            self::PROTOCOL_SAML1,
            self::PROTOCOL_SAML11,
            self::PROTOCOL_SHIB1,
            self::PROTOCOL_WS_FED,
        );

        return in_array($value, $arr);
    }
public static function isProtocolValid($value)
    {
        static $arr = array(
            self::PROTOCOL_SAML2,
            self::PROTOCOL_SAML1,
            self::PROTOCOL_SAML11,
            self::PROTOCOL_SHIB1,
            self::PROTOCOL_WS_FED,
        );

        return in_array($value, $arr);
    }
@param string $value

@return bool