From 89a9decc0bbfcfeb91b720768cc28c56cb3a74bb Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Sun, 23 Aug 2026 16:46:11 -0400 Subject: [PATCH] improve Loader@get docblock --- flight/core/Loader.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/flight/core/Loader.php b/flight/core/Loader.php index 9499755..fdf6acb 100644 --- a/flight/core/Loader.php +++ b/flight/core/Loader.php @@ -129,11 +129,14 @@ class Loader } /** - * Gets a registered callable + * Gets a registered class factory, constructor arguments and after instantiation callable. * - * @param string $name Registry name - * - * @return mixed Class information or null if not registered + * @param string $name Class alias. + * @return ?array{ + * class-string|callable(mixed ...$constructorArguments): object, + * mixed[], + * ?callable(object $instance): void, + * } */ public function get(string $name) {