diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index 9b1f2c3..095fab6 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -628,6 +628,10 @@ class ModelsCommand extends Command ) ); }); + // https://github.com/barryvdh/laravel-ide-helper/issues/1664 + $reflections = array_filter($reflections, function (\ReflectionMethod $methodReflection) { + return !($methodReflection->getName() === 'getUseFactoryAttribute'); + }); sort($reflections); foreach ($reflections as $reflection) { $type = $this->getReturnTypeFromReflection($reflection);