Browse Source

Upgrade Clara version

shalvah 3 years ago
parent
commit
10cc5b0a24

+ 1 - 1
composer.dingo.json

@@ -31,7 +31,7 @@
         "nikic/php-parser": "^4.10",
         "nunomaduro/collision": "^3.0|^4.0|^5.0",
         "ramsey/uuid": "^3.8|^4.0",
-        "shalvah/clara": "^2.6",
+        "shalvah/clara": "^3.0",
         "spatie/data-transfer-object": "^2.6",
         "symfony/var-exporter": "^4.0|^5.0",
         "symfony/yaml": "^4.0|^5.0"

+ 1 - 1
composer.json

@@ -30,7 +30,7 @@
     "nikic/php-parser": "^4.10",
     "nunomaduro/collision": "^3.0|^4.0|^5.0",
     "ramsey/uuid": "^3.8|^4.0",
-    "shalvah/clara": "^2.6",
+    "shalvah/clara": "^3.0",
     "spatie/data-transfer-object": "^2.6",
     "symfony/var-exporter": "^4.0|^5.0",
     "symfony/yaml": "^4.0|^5.0"

+ 1 - 1
src/Extracting/Strategies/GetFromFormRequestBase.php

@@ -75,7 +75,7 @@ class GetFromFormRequestBase extends Strategy
             return call_user_func_array([$formRequest, $this->customParameterDataMethodName], []);
         }
 
-        c::warn("No {$this->customParameterDataMethodName}() method found in " . get_class($formRequest) . " Scribe will only be able to extract basic information from the rules() method.");
+        c::warn("No {$this->customParameterDataMethodName}() method found in " . get_class($formRequest) . ". Scribe will only be able to extract basic information from the rules() method.");
 
         return [];
     }

+ 2 - 1
src/Tools/ConsoleOutputUtils.php

@@ -16,7 +16,8 @@ class ConsoleOutputUtils
     public static function bootstrapOutput(OutputInterface $outputInterface)
     {
         $showDebug = Globals::$shouldBeVerbose;
-        self::$clara = clara('knuckleswtf/scribe', $showDebug)
+        self::$clara = clara('knuckleswtf/scribe')
+            ->showDebugOutput($showDebug)
             ->useOutput($outputInterface)
             ->only();
     }

+ 1 - 1
src/Tools/Globals.php

@@ -4,7 +4,7 @@ namespace Knuckles\Scribe\Tools;
 
 class Globals
 {
-    public const SCRIBE_VERSION = '3.3.1';
+    public const SCRIBE_VERSION = '3.3.2';
 
     public static bool $shouldBeVerbose = false;
 }