23 throw new \InvalidArgumentException(
24 'ParamType::LIST cannot be used with ScalarParam; use ListParam instead'
29 throw new \InvalidArgumentException(
30 "Scalar parameter must be a string, number, or MessageValue; got $type"
40 $contents = $this->value->dump();
42 $contents = htmlspecialchars( $this->value );
44 return "<{$this->type}>" . $contents .
"</{$this->type}>";