From 197a1f8188c4f1b2a4ee2e566bb6b9823a50cc1a Mon Sep 17 00:00:00 2001 From: Julian Krzefski Date: Tue, 29 Oct 2019 17:50:19 +0100 Subject: [PATCH] Fix missing first character when triggered as command --- src/D4m/TerminalNotifier/Console/Command/NotifyCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/D4m/TerminalNotifier/Console/Command/NotifyCommand.php b/src/D4m/TerminalNotifier/Console/Command/NotifyCommand.php index 0d25390..73d1311 100644 --- a/src/D4m/TerminalNotifier/Console/Command/NotifyCommand.php +++ b/src/D4m/TerminalNotifier/Console/Command/NotifyCommand.php @@ -44,7 +44,7 @@ public function getArgumentsString($options) foreach($options as $key => $optionValue) { if( in_array($key, $inputs, true) ) { - $argumentsString .= '-'.$key.' "'.substr($optionValue,1).'" '; + $argumentsString .= '-'.$key.' "'.$optionValue.'" '; } } @@ -54,4 +54,4 @@ public function getArgumentsString($options) return $commandString; } -} \ No newline at end of file +}