Skip to content

Commit add2cbd

Browse files
committed
refactor: change if condition
This is more intuitive.
1 parent a895f63 commit add2cbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Config/Factories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ private static function setAlias(string $component, string $alias, string $class
228228
self::$updated[$component] = true;
229229

230230
// If a short classname is specified, also register FQCN to share the instance.
231-
if (! isset(self::$aliases[$component][$class])) {
231+
if (! isset(self::$aliases[$component][$class]) && ! self::isNamespaced($alias)) {
232232
self::$aliases[$component][$class] = $class;
233233
}
234234
}

0 commit comments

Comments
 (0)