Fixing typo

This commit is contained in:
Pavel Shevaev 2023-06-02 15:46:12 +03:00
parent 425cd73936
commit 796a273124
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}