Skip to content

Commit

Permalink
Added the __call method
Browse files Browse the repository at this point in the history
Twig wouldn't use the correct functions, it tried to call the $Name() function.
  • Loading branch information
SanderVerkuil committed Jul 19, 2016
1 parent d253206 commit 8f4e812
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Picqer/Financials/Exact/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ public function __set($key, $value)
}
}

public function __call($name, $arguments)
{
return $this->__get($name);
}

public function exists()
{
Expand Down

0 comments on commit 8f4e812

Please sign in to comment.