From 21c27154dd1e80edfee48174fc396f46b3e6ec60 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 23 Jun 2021 11:33:51 +1200 Subject: [PATCH] BUG subTemplates should be an array See `SSViewer::templates()`and `SSViewer::setTemplateFile()` Methods assume this variable should be an array. If you call `setTemplateFile()` directly prior / instead of any `setTemplate` call then a PHP warning is generated `[Warning] array_merge(): Expected parameter 2 to be an array, null given` --- src/View/SSViewer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/SSViewer.php b/src/View/SSViewer.php index b05f5439dc0..b7397f30c8b 100644 --- a/src/View/SSViewer.php +++ b/src/View/SSViewer.php @@ -167,7 +167,7 @@ class SSViewer implements Flushable * * @var array */ - protected $subTemplates = null; + protected $subTemplates = []; /** * @var bool