fix: phan 출력 결과에 따라 처리

- switch에 변수를 정하는 경우 default에 throw
- Util::getPost에 일부 타입 강제
- array인 일부 값들에 PHPDoc 타입 지정
- Enum에 toString이 없으므로 value값 지정
- 사용하지 않는 use function 제거
This commit is contained in:
2022-05-09 00:06:41 +09:00
parent e3e315a068
commit de5fe818e6
34 changed files with 23 additions and 137 deletions
+2
View File
@@ -517,6 +517,7 @@ function fillLowGenAll($tnmt_type)
};
//자동신청하고, 돈 있고, 아직 참가 안한 장수
/** @var array<array{0:array,1:float}> */
$freeJoinerCandidate = [];
foreach ($db->query(
@@ -535,6 +536,7 @@ function fillLowGenAll($tnmt_type)
break;
}
$general = Util::choiceRandomUsingWeightPair($freeJoinerCandidate);
/** @var array $general */
unset($freeJoinerCandidate[$general['no']]);
$grpIdx = array_keys($grpCount, min($grpCount))[0];