Skip to content

Commit

Permalink
Fix "Warning: Illegal offset type in isset or empty" error on install
Browse files Browse the repository at this point in the history
  • Loading branch information
devtronic committed Jun 16, 2018
1 parent ba49744 commit 33a134c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComposeEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private function getTemplatesForAutoCompose($templateName)

public function loadTemplate($name, $index = null)
{
if (isset($this->loadingTemplates[$name])) {
if (is_array($name) || is_object($name) || isset($this->loadingTemplates[$name])) {
return parent::loadTemplate($name, $index);
}

Expand Down

0 comments on commit 33a134c

Please sign in to comment.