Fix typing error

Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
Louis Chemineau 2021-06-21 12:22:44 +02:00
parent 0bf4e1e840
commit f40150b758

View file

@ -190,7 +190,11 @@ class Manage extends Command implements CompletionAwareInterface {
} elseif ($optionName === 'level') {
return ['debug', 'info', 'warning', 'error', 'fatal'];
} elseif ($optionName === 'timezone') {
return \DateTimeZone::listIdentifiers();
$identifier = \DateTimeZone::listIdentifiers();
if ($identifier === false) {
return [];
}
return $identifier;
}
return [];
}