diff --git a/PhpEcho.php b/PhpEcho.php index e4d9767..3540667 100644 --- a/PhpEcho.php +++ b/PhpEcho.php @@ -210,7 +210,9 @@ public function setCode(string $code) public function __invoke(string $helper, ...$args) { if ($helper !== '') { - self::injectHelpers(); + if ( ! self::isHelper($helper)) { + self::injectHelpers(); + } if (self::isHelper($helper)) { if (empty($this->bound_helpers)) { $this->bound_helpers = self::bindHelpersTo($this);