From 7776382978024d084ff78bc9949ac7b263d0e98c Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Sun, 21 Jan 2024 16:19:12 -0500 Subject: [PATCH] fix: Styles and STan --- src/Site.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Site.php b/src/Site.php index 056905e..c2872cb 100644 --- a/src/Site.php +++ b/src/Site.php @@ -22,8 +22,6 @@ class Site implements SiteInterface { - private ContentRoot $file_system_root; - private PublicRoot $fileSystemPublicRoot; private RequestInterface|false $request = false; @@ -44,6 +42,9 @@ public static function initWithRequest( RequestInterface $request ): self|false { $self = self::init($fileSystemRoot, $domain); + if ($self === false) { + return false; + } return $self->withRequest($request); }