ExistsDestNation 버그 수정

This commit is contained in:
2020-06-12 20:39:31 +09:00
parent ec30c46d7e
commit 772d37131d
+2 -2
View File
@@ -3,7 +3,7 @@
namespace sammo\Constraint; namespace sammo\Constraint;
class ExistsDestNation extends Constraint{ class ExistsDestNation extends Constraint{
const REQ_VALUES = Constraint::REQ_DEST_NATION; const REQ_VALUES = 0;
public function checkInputValues(bool $throwExeception=true):bool{ public function checkInputValues(bool $throwExeception=true):bool{
if(!parent::checkInputValues($throwExeception) && !$throwExeception){ if(!parent::checkInputValues($throwExeception) && !$throwExeception){
@@ -17,7 +17,7 @@ class ExistsDestNation extends Constraint{
$this->checkInputValues(); $this->checkInputValues();
$this->tested = true; $this->tested = true;
if($this->destNation['nation']){ if($this->destNation['nation']??0){
return true; return true;
} }