From aa25cccab2aef89b225f5d16ff0a5750c2ffefff Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 25 Jul 2023 16:27:38 +0900 Subject: [PATCH] refactor: use isNamespaced() --- system/Config/Factories.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/Config/Factories.php b/system/Config/Factories.php index 93a2193a12bf..f75c87d59cd9 100644 --- a/system/Config/Factories.php +++ b/system/Config/Factories.php @@ -226,8 +226,8 @@ class_exists($alias, false) // If an App version was requested then see if it verifies if ( - // preferApp is used only for no namespace class. - strpos($alias, '\\') === false + // preferApp is used only for no namespaced class. + ! self::isNamespaced($alias) && $options['preferApp'] && class_exists($appname) && self::verifyInstanceOf($options, $alias) ) {