From 5afd6af3f3293a27db5377b3f97ca88df07174b1 Mon Sep 17 00:00:00 2001 From: George Petculescu Date: Sun, 26 Sep 2021 23:56:39 +0300 Subject: Adds PHP 8 in Travis --- system/core/Output.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'system/core/Output.php') diff --git a/system/core/Output.php b/system/core/Output.php index c56aff4b0..a2397763d 100644 --- a/system/core/Output.php +++ b/system/core/Output.php @@ -299,10 +299,15 @@ class CI_Output { */ public function get_header($header) { + // We only need [x][0] from our multi-dimensional array + $header_lines = array_map(function ($headers) + { + return array_shift($headers); + }, $this->headers); + // Combine headers already sent with our batched headers $headers = array_merge( - // We only need [x][0] from our multi-dimensional array - array_map('array_shift', $this->headers), + $header_lines, headers_list() ); -- cgit v1.2.3-24-g4f1b