From eecfd3f235014d313f248bc6ecdfabb5808b0456 Mon Sep 17 00:00:00 2001 From: Fedik Date: Wed, 12 Oct 2022 15:34:15 +0300 Subject: [PATCH] Fix Automatic conversion of false to array, php8.1 --- libraries/src/Document/HtmlDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/src/Document/HtmlDocument.php b/libraries/src/Document/HtmlDocument.php index f4bf65ae23dd7..ee4c33e9267c3 100644 --- a/libraries/src/Document/HtmlDocument.php +++ b/libraries/src/Document/HtmlDocument.php @@ -542,7 +542,7 @@ public function getBuffer($type = null, $name = null, $attribs = array()) ] ) ); - $cbuffer = $cache->get('cbuffer_' . $type); + $cbuffer = $cache->get('cbuffer_' . $type) ?: []; if (isset($cbuffer[$hash])) { return Cache::getWorkarounds($cbuffer[$hash], array('mergehead' => 1));