private function validateIncludeRegex($config): void
    {
        if (! Validator::key('include', Validator::stringType())->validate($config)
            && ! Validator::key('include', Validator::nullType())->validate($config)
        ) {
            throw new InvalidConfigException('"include" parameter must be set as a string or a null value.');
        }
    }
private function validateIncludeRegex($config): void
    {
        if (! Validator::key('include', Validator::stringType())->validate($config)
            && ! Validator::key('include', Validator::nullType())->validate($config)
        ) {
            throw new InvalidConfigException('"include" parameter must be set as a string or a null value.');
        }
    }
private function validateIncludeRegex ( $ config ) : void { if ( ! Validator :: key ( 'include' , Validator :: stringType ( ) ) -> validate ( $ config ) && ! Validator :: key ( 'include' , Validator :: nullType ( ) ) -> validate ( $ config ) ) { throw new InvalidConfigException ( '"include" parameter must be set as a string or a null value.' ) ; } }
Validate the include regex.

@param mixed $config The configuration.

@throws InvalidConfigException If a string attribute is invalid.
Validate the include regex .