diff --git a/lib/Zend/Service/Console/Command.php b/lib/Zend/Service/Console/Command.php index 943dc3f6bd9..2e08ff758e2 100644 --- a/lib/Zend/Service/Console/Command.php +++ b/lib/Zend/Service/Console/Command.php @@ -220,8 +220,8 @@ protected static function _buildModel() for ($hi = 0; $hi < count($handlers); $hi++) { $handler = $handlers[$hi]; - $handlerDescription = isset($handlerDescriptions[$hi]) ? $handlerDescriptions[$hi] : isset($handlerDescriptions[0]) ? $handlerDescriptions[0] : ''; - $handlerDescription = str_replace('\r\n', "\r\n", $handlerDescription); + $handlerDescription = $handlerDescriptions[$hi] ?? $handlerDescriptions[0] ?? ''; + $handlerDescription = str_replace('\r\n', "\r\n", $handlerDescription); $handlerDescription = str_replace('\n', "\n", $handlerDescription); $handlerModel = (object)array(