버그 수정

This commit is contained in:
2019-04-21 15:41:02 +09:00
parent 2765e1c923
commit 9ad8d70cf7
9 changed files with 32 additions and 14 deletions
+4 -1
View File
@@ -13,7 +13,10 @@ class LastTurn{
$this->setTerm($term);
}
static function fromJson(string $json):self{
static function fromJson(?string $json):self{
if($json === null || $json === ''){
return new static();
}
$values = Json::decode($json);
$obj = new static(
$values['command']??null,