From 57e0b7870c5a3994c61127573d43b9c82a87b1d7 Mon Sep 17 00:00:00 2001 From: zonky2 Date: Wed, 5 Apr 2023 18:45:45 +0200 Subject: [PATCH] Fix PHP 8 warning (#29) Fix PHP 8 warning --- src/EventListener/AjaxReloadElementListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventListener/AjaxReloadElementListener.php b/src/EventListener/AjaxReloadElementListener.php index 643e5cd..56dea78 100644 --- a/src/EventListener/AjaxReloadElementListener.php +++ b/src/EventListener/AjaxReloadElementListener.php @@ -3,11 +3,11 @@ /** * This file is part of richardhj/contao-ajax_reload_element. * - * Copyright (c) 2016-2018 Richard Henkenjohann + * Copyright (c) 2016-2022 Richard Henkenjohann * * @package richardhj/contao-ajax_reload_element * @author Richard Henkenjohann - * @copyright 2016-2018 Richard Henkenjohann + * @copyright 2016-2022 Richard Henkenjohann * @license https://github.com/richardhj/contao-ajax_reload_element/blob/master/LICENSE LGPL-3.0 */ @@ -144,7 +144,7 @@ public function onGetPageLayout($page, $layout) $page->layoutId = $layout->id; $page->template = $layout->template ?: 'fe_page'; $page->templateGroup = $theme->templates; - list($strFormat, $strVariant) = explode('_', $layout->doctype); + list($strFormat, $strVariant) = explode('_', $layout->doctype) + array(null, null); $page->outputFormat = $strFormat; $page->outputVariant = $strVariant;