Skip to content

Commit

Permalink
allow empty container parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dracony committed Jul 17, 2015
1 parent a8db854 commit a822c1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PHPixie/Template/Renderer/Context.php
Expand Up @@ -76,7 +76,7 @@ public function variables()
{
return array_merge(
$this->extensions->aliases(),
$this->data->get()
$this->data->get(null, array())
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/PHPixie/Tests/Template/Renderer/ContextTest.php
Expand Up @@ -107,7 +107,7 @@ public function testVariables()
);

$this->method($this->extensions, 'aliases', $aliases, array(), 0);
$this->method($this->data, 'get', $data, array(), 0);
$this->method($this->data, 'get', $data, array(null, array()), 0);

$variables = array_merge($aliases, $data);
$this->assertSame($variables, $this->context->variables());
Expand Down

0 comments on commit a822c1c

Please sign in to comment.