Skip to content

Commit

Permalink
Merge 6aa8759 into 0f2f8b4
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwarfex committed Apr 14, 2021
2 parents 0f2f8b4 + 6aa8759 commit e742a3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ViewModel.php
Expand Up @@ -13,11 +13,11 @@
class ViewModel extends JsonModel
{
/**
* @return array|\Traversable
* @return array|\Traversable|\ArrayAccess
*/
public function getVariables()
{
if (! array_key_exists('type', $this->variables) || empty($this->variables['type'])) {
if (empty($this->variables['type'] || !$this->variables->offsetExists('type'))) {
return $this->variables;
}

Expand Down

0 comments on commit e742a3e

Please sign in to comment.