5use InvalidArgumentException;
26 throw new InvalidArgumentException(
27 'ParamType::LIST cannot be used with ScalarParam; use ListParam instead'
33 throw new InvalidArgumentException(
34 "Scalar parameter must be a string, number, or MessageValue; got $type"
44 $contents = $this->value->dump();
46 $contents = htmlspecialchars( (
string)$this->value );
48 return "<{$this->type}>" . $contents .
"</{$this->type}>";