From 74c8e456b611ef410aa04dd3dc0bea6b9032dc93 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Wed, 1 Apr 2026 10:50:01 -0400 Subject: [PATCH] add void return type in Engine::init callables --- src/Engine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engine.php b/src/Engine.php index 3c642be..c44cd6a 100644 --- a/src/Engine.php +++ b/src/Engine.php @@ -153,7 +153,7 @@ class Engine $this->loader->register('response', Response::class); $this->loader->register('router', Router::class); - $this->loader->register('view', View::class, [], function (View $view) { + $this->loader->register('view', View::class, [], function (View $view): void { $view->path = $this->get('flight.views.path'); $view->extension = $this->get('flight.views.extension'); }); @@ -173,7 +173,7 @@ class Engine $this->set('flight.v2.output_buffering', false); // Startup configuration - $this->before('start', function () { + $this->before('start', function (): void { // Enable error handling if ($this->get('flight.handle_errors')) { set_error_handler([$this, 'handleError']);