버그 수정
This commit is contained in:
1 parent
45a4ca5298
commit
f8bcfba90e
9 files changed
+32
-14
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user