We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eab699 commit 46b4c71Copy full SHA for 46b4c71
src/Console/ModelsCommand.php
@@ -932,7 +932,13 @@ protected function createPhpDocs($class)
932
continue;
933
}
934
$arguments = implode(', ', $method['arguments']);
935
- $tagLine = "@method static {$method['type']} {$name}({$arguments})";
+
936
+ if (method_exists(\Illuminate\Database\Eloquent\Model::class, $name)) {
937
+ $tagLine = "@method static {$method['type']} {$name}({$arguments})";
938
+ } else {
939
+ $tagLine = "@method {$method['type']} {$name}({$arguments})";
940
+ }
941
942
if ($method['comment'] !== '') {
943
$tagLine .= " {$method['comment']}";
944
0 commit comments