We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23edf4 commit 32ac43eCopy full SHA for 32ac43e
src/App.php
@@ -14,6 +14,7 @@
14
use function array_merge;
15
use function array_shift;
16
use function array_values;
17
+use function basename;
18
use function class_exists;
19
use function function_exists;
20
use function getcwd;
@@ -548,6 +549,14 @@ public function getScript(): string
548
549
return $this->script;
550
}
551
552
+ /**
553
+ * @return string
554
+ */
555
+ public function getScriptName(): string
556
+ {
557
+ return basename($this->script);
558
+ }
559
+
560
/**
561
* @param string $script
562
*/
0 commit comments