버그 수정

This commit is contained in:
2020-04-27 00:30:48 +09:00
parent c2364e3508
commit 2c45d38a66
33 changed files with 77 additions and 36 deletions
+8 -2
View File
@@ -33,7 +33,7 @@ class SpecialityHelper{
if(static::$domesticInv){
if(!key_exists($type, static::$domesticInv)){
throw new \InvalidArgumentException('올바르지 않은 특기명:',$type);
throw new \InvalidArgumentException('올바르지 않은 특기명:'.$type);
}
return static::$domesticInv[$type];
}
@@ -43,6 +43,9 @@ class SpecialityHelper{
$cache[$classObj->getName()] = $className;
}
static::$domesticInv = $cache;
if(!key_exists($type, $cache)){
throw new \InvalidArgumentException('올바르지 않은 특기명:'.$type);
}
return $cache[$type];
}
@@ -53,7 +56,7 @@ class SpecialityHelper{
if(static::$warInv){
if(!key_exists($type, static::$warInv)){
throw new \InvalidArgumentException('올바르지 않은 특기명:',$type);
throw new \InvalidArgumentException('올바르지 않은 특기명:'.$type);
}
return static::$warInv[$type];
}
@@ -62,6 +65,9 @@ class SpecialityHelper{
foreach(static::getSpecialWarList(false) as $className=>$classObj){
$cache[$classObj->getName()] = $className;
}
if(!key_exists($type, $cache)){
throw new \InvalidArgumentException('올바르지 않은 특기명:'.$type);
}
static::$warInv = $cache;
return $cache[$type];
}