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`
This commit is contained in:
Will Rossiter 2021-06-23 11:33:51 +12:00 committed by GitHub
parent bcddf557e1
commit 21c27154dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ class SSViewer implements Flushable
*
* @var array
*/
protected $subTemplates = null;
protected $subTemplates = [];
/**
* @var bool