mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-17 17:47:13 +00:00
prevent generation of incorrect property annotation (#1665)
Co-authored-by: Skyler Mayfield <[email protected]>
This commit is contained in:
co-authored by
Skyler Mayfield
parent
187ce9beeb
commit
ead24b10f6
@@ -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);
|
sort($reflections);
|
||||||
foreach ($reflections as $reflection) {
|
foreach ($reflections as $reflection) {
|
||||||
$type = $this->getReturnTypeFromReflection($reflection);
|
$type = $this->getReturnTypeFromReflection($reflection);
|
||||||
|
|||||||
Reference in New Issue
Block a user