Skip to content

Commit 57e0b78

Browse files
authored
Fix PHP 8 warning (#29)
Fix PHP 8 warning
1 parent 974a9be commit 57e0b78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/EventListener/AjaxReloadElementListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
/**
44
* This file is part of richardhj/contao-ajax_reload_element.
55
*
6-
* Copyright (c) 2016-2018 Richard Henkenjohann
6+
* Copyright (c) 2016-2022 Richard Henkenjohann
77
*
88
* @package richardhj/contao-ajax_reload_element
99
* @author Richard Henkenjohann <richardhenkenjohann@googlemail.com>
10-
* @copyright 2016-2018 Richard Henkenjohann
10+
* @copyright 2016-2022 Richard Henkenjohann
1111
* @license https://github.com/richardhj/contao-ajax_reload_element/blob/master/LICENSE LGPL-3.0
1212
*/
1313

@@ -144,7 +144,7 @@ public function onGetPageLayout($page, $layout)
144144
$page->layoutId = $layout->id;
145145
$page->template = $layout->template ?: 'fe_page';
146146
$page->templateGroup = $theme->templates;
147-
list($strFormat, $strVariant) = explode('_', $layout->doctype);
147+
list($strFormat, $strVariant) = explode('_', $layout->doctype) + array(null, null);
148148
$page->outputFormat = $strFormat;
149149
$page->outputVariant = $strVariant;
150150

0 commit comments

Comments
 (0)