protected function validateBooleanType($value, array $schema): ErrorResult
    {
        $result = new ErrorResult();
        if (is_bool($value) === false) {
            $result->addError($this->createError('type=boolean', 'type=' . gettype($value)));
            return $result;
        }
        return $result;
    }
protected function validateBooleanType($value, array $schema): ErrorResult
    {
        $result = new ErrorResult();
        if (is_bool($value) === false) {
            $result->addError($this->createError('type=boolean', 'type=' . gettype($value)));
            return $result;
        }
        return $result;
    }
protected function validateBooleanType ( $ value , array $ schema ) : ErrorResult { $ result = new ErrorResult ( ) ; if ( is_bool ( $ value ) === false ) { $ result -> addError ( $ this -> createError ( 'type=boolean' , 'type=' . gettype ( $ value ) ) ) ; return $ result ; } return $ result ; }
Validate a boolean value with the given schema

@param mixed $value
@param array $schema
@return ErrorResult
Validate a boolean value with the given schema