25 throw new \InvalidArgumentException(
26 'ParamType::LIST cannot be used with ScalarParam; use ListParam instead'
32 throw new \InvalidArgumentException(
33 "Scalar parameter must be a string, number, or MessageValue; got $type"
43 $contents = $this->value->dump();
45 $contents = htmlspecialchars( (
string)$this->value );
47 return "<{$this->type}>" . $contents .
"</{$this->type}>";