diff --git a/src/View.php b/src/View.php index d3843a3..91964dc 100644 --- a/src/View.php +++ b/src/View.php @@ -213,7 +213,7 @@ public static function renderComponent(Component $component): string } if ($level <> ob_get_level()) { - throw new Exception("output buffer nesting level mismatch. Expected: " . $level . ", got: " . ob_get_level()); + throw new Exception("output buffer nesting level mismatch. Expected: {$level}, got: " . ob_get_level()); } ob_end_clean();