diff --git a/src/Core/View/View.php b/src/Core/View/View.php index c21285c6..64ea17d4 100644 --- a/src/Core/View/View.php +++ b/src/Core/View/View.php @@ -328,7 +328,7 @@ public function resolveLayout(): string return $layout['default'] ?? ''; } - return (string) $layout ?: $this->options['layout']; + return (string) ($layout ?: $this->options['layout'] ?? ''); } protected function injectData(object $vm, array $data): void