- Quickfix in block error message output without variables

This commit is contained in:
Dave M. 2022-07-18 18:14:49 +00:00
parent aa0bdea0c5
commit 4c3772376c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class BlockToken implements ControlStructure {
}
catch(\TypeError \$ex) {
throw new \Exception(
sprintf('A block awaiting arguments `%s` instead received `%s` with values `%s`', '$arguments', implode(', ', array_map('gettype', \$inlineVariables)), json_encode(\$inlineVariables))
sprintf('A block awaiting arguments `%s` instead received `%s` with values `%s`', '$arguments', implode(', ', array_map('gettype', \$inlineVariables ?? [])), json_encode(\$inlineVariables))
);
}
?>