Disallowing duplicating def macro arguments
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2024-12-17 18:23:49 +03:00
parent 59a0b424fa
commit 1f3ab806bd
1 changed files with 2 additions and 0 deletions

View File

@ -1565,6 +1565,8 @@ class JSM_ArgsParser
{
$this->skip_whitespace();
$value = $this->parse_arg_value();
if(isset($out[$name]))
throw new Exception("Argument '{$name}' is already defined in def macro");
$out[$name] = $value;
$this->skip_whitespace();
$ch = $this->next();