Prechádzať zdrojové kódy

Fix bug in upgrader

shalvah 2 rokov pred
rodič
commit
e3092307da
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 1 1
      composer.json
  2. 2 2
      src/Commands/Upgrade.php

+ 1 - 1
composer.json

@@ -30,7 +30,7 @@
     "nunomaduro/collision": "^5.10|^6.0",
     "ramsey/uuid": "^4.2.2",
     "shalvah/clara": "^3.1.0",
-    "shalvah/upgrader": "0.*",
+    "shalvah/upgrader": "^0.3.0",
     "spatie/data-transfer-object": "^2.6|^3.0",
     "symfony/var-exporter": "^5.4|^6.0",
     "symfony/yaml": "^5.4|^6.0"

+ 2 - 2
src/Commands/Upgrade.php

@@ -149,8 +149,8 @@ class Upgrade extends Command
             $configFile = "config/{$this->configName}.php";
             $output = str_replace("\n", "\n        ", $output);
             $newContents = str_replace(
-                "        'order' => [],",
-                "        'order' => $output,",
+                "'order' => [],",
+                "'order' => $output,",
                 file_get_contents($configFile)
             );
             file_put_contents($configFile, $newContents);