Fixed PHPStan errors

This commit is contained in:
Dylan K. Taylor
2022-05-10 15:38:26 +01:00
parent b875b68fc7
commit 5cc0d92eff
2 changed files with 6 additions and 3 deletions

View File

@@ -249,7 +249,7 @@ class SimpleCommandMap implements CommandMap{
foreach($commandStrings as $commandString){
$args = CommandStringHelper::parseQuoteAware($commandString);
$commandName = array_shift($args);
$commandName = array_shift($args) ?? "";
$command = $this->getCommand($commandName);
if($command === null){