From 796a273124f9137185903f23261b75673f0f4957 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 2 Jun 2023 15:46:12 +0300 Subject: [PATCH] Fixing typo --- src/bind.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bind.inc.php b/src/bind.inc.php index c3f0f67..1ab65c7 100644 --- a/src/bind.inc.php +++ b/src/bind.inc.php @@ -205,7 +205,7 @@ function add_twig_support(\Twig\Environment $twig) if($arg->hasToken('default')) ++$def_args_num; else if($def_args_num > 0) - throw new Exception("Field '{$name}' in {$fn->getName()} is expected to be tagged with @default"); + throw new Exception("Field '{$arg->getName()}' in {$fn->getName()} is expected to be tagged with @default"); } return $def_args_num; }