This commit is contained in:
Dmitriy Derepko 2019-12-26 15:06:00 +03:00 committed by Nicolas Grekas
parent af4f99f52b
commit 340bb145d9

View File

@ -25,7 +25,7 @@ final class CliContextProvider implements ContextProviderInterface
}
return [
'command_line' => $commandLine = implode(' ', $_SERVER['argv']),
'command_line' => $commandLine = implode(' ', $_SERVER['argv'] ?? []),
'identifier' => hash('crc32b', $commandLine.$_SERVER['REQUEST_TIME_FLOAT']),
];
}