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.
2 parents fa4edd9 + 16be682 commit 58bf6aeCopy full SHA for 58bf6ae
extension.neon
@@ -9,6 +9,7 @@ parameters:
9
schemaPaths:
10
- app/Config/Schema/*.php
11
stubFiles:
12
+ - stubs/Model/Model.stub
13
- stubs/Routing/Router.stub
14
- stubs/Utility.stub
15
services:
stubs/Model/Model.stub
@@ -0,0 +1,12 @@
1
+<?php
2
+
3
+class Model
4
+{
5
+ /**
6
+ * @param string $type
7
+ * @param array<string, mixed> $query
8
+ *
+ * @return ($type is 'count' ? int : (array<array-key, mixed>|int|null))
+ */
+ public function find($type = 'first', $query = array()) {}
+}
0 commit comments