Skip to content

Commit

Permalink
[BUGFIX] Handle TypeError in v:variable.set
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Jan 28, 2025
1 parent 6dd72de commit 388420f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Variable/SetViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public static function renderStatic(
// Note: re-insert the variable to ensure unreferenced values like arrays also get updated
$variableProvider->remove($objectName);
$variableProvider->add($objectName, $object);
} catch (\Exception $error) {
} catch (\Exception | \Error $error) {
return null;
}
}
Expand Down

0 comments on commit 388420f

Please sign in to comment.