버그 수정

This commit is contained in:
Hide_D committed 2020-04-21 02:06:03 +09:00
1 parent 6b9157f1d4
commit 3c7bee32f8
13 files changed
+103 -40

No files matched your search

+9 -2
View File
@@ -258,6 +258,11 @@ abstract class BaseCommand{
}
public function testReservable():?string{
if(!$this->isArgValid()){
$this->reasonNotReservable = '인자가 올바르지 않습니다.';
$this->reservable = false;
return $this->reasonNotReservable;
}
if($this->reservableConstraints === null){
return null;
}
@@ -288,8 +293,10 @@ abstract class BaseCommand{
public function testRunnable():?string{
if(!$this->isArgValid()){
throw new \InvalidArgumentException('인자가 제대로 설정되지 않았습니다'.\sammo\Json::encode($this->arg));
}
$this->reasonNotReservable = '인자가 올바르지 않습니다.';
$this->reservable = false;
return $this->reasonNotReservable;
}
if($this->runnableConstraints === null){
throw new \InvalidArgumentException('runnableConstraits가 제대로 설정되지 않았습니다');
}