From 7f1b976ca1b1b4a790edc144cbf4e2d2f6589d2f Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Sun, 23 Aug 2026 15:11:56 -0400 Subject: [PATCH] simplify loader properties typehints --- flight/core/Loader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/core/Loader.php b/flight/core/Loader.php index 72e1525..a9eb361 100644 --- a/flight/core/Loader.php +++ b/flight/core/Loader.php @@ -17,7 +17,7 @@ use Exception; */ class Loader { - /** @var array, ?callable}> Registered classes */ + /** @var array|callable(): object, mixed[], ?callable}> Registered classes */ protected array $classes = []; /** If this is disabled, classes can load with underscores */ @@ -26,7 +26,7 @@ class Loader /** @var array Class instances */ protected array $instances = []; - /** @var array Autoload directories */ + /** @var string[] Autoload directories */ protected static array $dirs = []; /**