MinCondition 조건 약화

This commit is contained in:
2020-05-04 20:37:23 +09:00
parent 91f2be6759
commit 014fb9408e
4 changed files with 14 additions and 5 deletions
+1 -4
View File
@@ -312,10 +312,7 @@ abstract class BaseCommand{
}
public function testMinConditionMet():?string{
if(!static::$reqArg){
if($this->minConditionConstraints){
throw new \LogicException('reqArg==false인데 minCondition이 설정됨');
}
if(!static::$reqArg && !$this->minConditionConstraints){
return $this->testFullConditionMet();
}