瀏覽代碼

Fix Core\Config

Visman 4 年之前
父節點
當前提交
d8f94dc853
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      app/Core/Config.php

+ 5 - 4
app/Core/Config.php

@@ -148,10 +148,11 @@ class Config
                         break;
                     case 'NEW':
                     case '=>':
-                        $value        = $this->parse('ZERO');
-                        $value_before = $other;
-                        $other        = '';
-                        $type         = 'VALUE';
+                        $this->configStr = \substr($this->configStr, 0, -1);
+                        $value           = $this->parse('ZERO');
+                        $value_before    = $other;
+                        $other           = '';
+                        $type            = 'VALUE';
                         break;
                     default:
                         throw new ForkException('Config array cannot be parsed');