소스 검색

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');