Skip to content

Commit

Permalink
refactor: change if condition
Browse files Browse the repository at this point in the history
This is more intuitive.
  • Loading branch information
kenjis committed Aug 27, 2023
1 parent a895f63 commit add2cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Config/Factories.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private static function setAlias(string $component, string $alias, string $class
self::$updated[$component] = true;

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

0 comments on commit add2cbd

Please sign in to comment.