From f40150b7588fb738e365c67153584a72a80a51c8 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Mon, 21 Jun 2021 12:22:44 +0200 Subject: Fix typing error Signed-off-by: Louis Chemineau --- core/Command/Log/Manage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/Command/Log') diff --git a/core/Command/Log/Manage.php b/core/Command/Log/Manage.php index a57675ee42f..4c7e7dd8497 100644 --- a/core/Command/Log/Manage.php +++ b/core/Command/Log/Manage.php @@ -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 []; } -- cgit v1.2.3