Browse Source

Fix Core\Config

Visman 4 years ago
parent
commit
d8f94dc853
1 changed files with 5 additions and 4 deletions
  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');