Skip to content

Commit ead24b1

Browse files
skyler544Skyler Mayfield
andauthored
prevent generation of incorrect property annotation (#1665)
Co-authored-by: Skyler Mayfield <mayfield@fynk.com>
1 parent 187ce9b commit ead24b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Console/ModelsCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,10 @@ public function getPropertiesFromMethods($model)
628628
)
629629
);
630630
});
631+
// https://github.com/barryvdh/laravel-ide-helper/issues/1664
632+
$reflections = array_filter($reflections, function (\ReflectionMethod $methodReflection) {
633+
return !($methodReflection->getName() === 'getUseFactoryAttribute');
634+
});
631635
sort($reflections);
632636
foreach ($reflections as $reflection) {
633637
$type = $this->getReturnTypeFromReflection($reflection);

0 commit comments

Comments
 (0)