seven 5 hari lalu
induk
melakukan
dcd2bf568c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Constants/GameplayRuleEnum.php

+ 1 - 1
app/Constants/GameplayRuleEnum.php

@@ -130,7 +130,7 @@ class GameplayRuleEnum
     public static function validateInput(string $input): ?array
     {
         // 获取所有玩法
-        $allRules = array_merge(...self::$RULES);
+        $allRules = array_merge(...array_values(self::$RULES));
 
         // 玩法正则(防止玩法里有特殊符号出错)
         $rulesPattern = implode('|', array_map('preg_quote', $allRules));