From c929626fc6de968902aeada12534e398669fc045 Mon Sep 17 00:00:00 2001 From: Sascha Nos Date: Tue, 5 Sep 2023 12:17:27 +0200 Subject: [PATCH] fix wrong type return --- flight/Engine.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flight/Engine.php b/flight/Engine.php index f8c996b..bd6921d 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -427,7 +427,8 @@ class Engine $response->status($code); } - $response->write(ob_get_clean()); + $content = ob_get_clean(); + $response->write($content ?: ''); $response->send(); }