From fe1a0cc479377249ca8c381c74cb878185b1fd81 Mon Sep 17 00:00:00 2001 From: Philippe Date: Mon, 2 Sep 2024 08:47:41 +0200 Subject: [PATCH] Resolve get class string instead of an object. This fix resolve a crash with phpstan or ide-helper --- src/Support/DomainAutoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/DomainAutoloader.php b/src/Support/DomainAutoloader.php index f107dc0..9993e41 100644 --- a/src/Support/DomainAutoloader.php +++ b/src/Support/DomainAutoloader.php @@ -110,7 +110,7 @@ protected function handleFactories(): void { Factory::guessFactoryNamesUsing(function (string $modelName) { if (DomainResolver::isDomainClass($modelName)) { - return DomainFactory::factoryForModel($modelName); + return DomainFactory::resolveFactoryName($modelName); } $appNamespace = static::appNamespace();