From bd861748d1803bbf16f21945ec7782094bb40e65 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Wed, 1 Apr 2026 10:51:31 -0400 Subject: [PATCH] allow $loader->reset()->reset() --- src/core/Loader.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Loader.php b/src/core/Loader.php index bb0ad41..025b90c 100644 --- a/src/core/Loader.php +++ b/src/core/Loader.php @@ -122,9 +122,11 @@ class Loader } /** Resets the object to the initial state */ - public function reset(): void + public function reset(): self { $this->classes = []; $this->instances = []; + + return $this; } }