StringTag: Fixed bad error message for bad value type

This commit is contained in:
Dylan K. Taylor 2017-12-17 12:30:18 +00:00
parent 914e4c9a72
commit bb3e72ea4b

View File

@ -65,7 +65,7 @@ class StringTag extends NamedTag{
*/
public function setValue($value) : void{
if(!is_string($value)){
throw new \TypeError("ShortTag value must be of type int, " . gettype($value) . " given");
throw new \TypeError("StringTag value must be of type string, " . gettype($value) . " given");
}
parent::setValue($value);
}