prevent generation of incorrect property annotation (#1665)

Co-authored-by: Skyler Mayfield <[email protected]>
This commit is contained in:
skyler544
2025-01-29 22:43:43 +01:00
committed by GitHub
co-authored by Skyler Mayfield
parent 187ce9beeb
commit ead24b10f6
+4
View File
@@ -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);