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 d2f1941Copy full SHA for d2f1941
src/Console/ModelsCommand.php
@@ -932,7 +932,19 @@ protected function createPhpDocs($class)
932
continue;
933
}
934
$arguments = implode(', ', $method['arguments']);
935
- $tagLine = "@method static {$method['type']} {$name}({$arguments})";
+
936
+ $staticMethodNames = [
937
+ 'newQuery',
938
+ 'query',
939
+ 'newModelQuery',
940
+ ];
941
942
+ if (in_array($name, $staticMethodNames)) {
943
+ $tagLine = "@method static {$method['type']} {$name}({$arguments})";
944
+ } else {
945
+ $tagLine = "@method {$method['type']} {$name}({$arguments})";
946
+ }
947
948
if ($method['comment'] !== '') {
949
$tagLine .= " {$method['comment']}";
950
0 commit comments