Skip to content

Commit

Permalink
refactor: use isNamespaced()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 25, 2023
1 parent e0db315 commit aa25ccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/Config/Factories.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
) {
Expand Down

0 comments on commit aa25ccc

Please sign in to comment.