mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
StringTag: Fixed bad error message for bad value type
This commit is contained in:
parent
914e4c9a72
commit
bb3e72ea4b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user