From 8779ff318414d4772fe1ae616e6e9cf3adf596b1 Mon Sep 17 00:00:00 2001 From: Daryll Doyle Date: Tue, 18 Nov 2025 14:53:33 +0000 Subject: [PATCH] Disable chains --- src/ModuleInitialization.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ModuleInitialization.php b/src/ModuleInitialization.php index 0b4d9e3..9f9a8e3 100644 --- a/src/ModuleInitialization.php +++ b/src/ModuleInitialization.php @@ -68,6 +68,8 @@ public function get_classes( $dir ) { $class_finder = Discover::in( $dir ); // Only fetch classes. $class_finder->classes(); + // Disable inheritance chain resolution + $class_finder->withoutChains(); // If we are in production or staging, cache the class loader to improve performance. if ( $this->should_use_cache() ) {