Skip to content

Commit c6a9556

Browse files
fix: take namespace into account while cheking for factory class existance.
1 parent c52588a commit c6a9556

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Traits/FactoryLocatorTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ protected static function newFactory(): ?Factory
1717

1818
Factory::useNamespace($nameSpace);
1919
$className = class_basename(static::class);
20-
21-
if (!class_exists($className)) {
20+
21+
if (!class_exists($nameSpace . $className . 'Factory')) {
2222
return null;
2323
}
2424

0 commit comments

Comments
 (0)