From 73f254ff32829306fa3776dea17bd5aa58a23398 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 12 Jul 2017 16:52:02 +0200 Subject: [PATCH] BaseHttpException: Don't return null in method getHeaders() --- library/Icinga/Exception/Http/BaseHttpException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Exception/Http/BaseHttpException.php b/library/Icinga/Exception/Http/BaseHttpException.php index 225e9583f..781fa906d 100644 --- a/library/Icinga/Exception/Http/BaseHttpException.php +++ b/library/Icinga/Exception/Http/BaseHttpException.php @@ -69,6 +69,6 @@ class BaseHttpException extends IcingaException implements HttpExceptionInterfac */ public function getHeaders() { - return $this->headers; + return $this->headers ?: array(); } }