10000 [12.x] added detailed doc types to bindings related methods (#55576) · laravel/framework@5d5a00e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d5a00e

Browse files
authored
[12.x] added detailed doc types to bindings related methods (#55576)
* [12.x] added detailed doc types to bindings related methods * fix styling
1 parent 30aeb8a commit 5d5a00e

File tree

1 file changed

+27
-4
lines changed

1 file changed

+27
-4
lines changed

src/Illuminate/Database/Query/Builder.php

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,17 @@ class Builder implements BuilderContract
6363
/**
6464
* The current query value bindings.
6565
*
66-
* @var array
66+
* @var array{
67+
* select: list<mixed>,
68+
* from: list<mixed>,
69+
* join: list<mixed>,
70+
* where: list<mixed>,
71+
* groupBy: list<mixed>,
72+
* having: list<mixed>,
73+
* order: list<mixed>,
74+
* union: list<mixed>,
75+
* unionOrder: list<mixed>,
76+
* }
6777
*/
6878
public $bindings = [
6979
 10000 9;select' => [],
@@ -4127,7 +4137,7 @@ public function getOffset()
41274137
/**
41284138
* Get the current query value bindings in a flattened array.
41294139
*
4130-
* @return array
4140+
* @return list<mixed>
41314141
*/
41324142
public function getBindings()
41334143
{
@@ -4137,7 +4147,17 @@ public function getBindings()
41374147
/**
41384148
* Get the raw array of bindings.
41394149
*
4140-
* @return array
4150+
* @return array{
4151+
* select: list<mixed>,
4152+
* from: list<mixed>,
4153+
* join: list<mixed>,
4154+
* where: list<mixed>,
4155+
* groupBy: list<mixed>,
4156+
* having: list<mixed>,
4157+
* order: list<mixed>,
4158+
* union: list<mixed>,
4159+
* unionOrder: list<mixed>,
4160+
* }
41414161
*/
41424162
public function getRawBindings()
41434163
{
@@ -4147,6 +4167,7 @@ public function getRawBindings()
41474167
/**
41484168
* Set the bindings on the query builder.
41494169
*
4170+
* @param list<mixed> $bindings
41504171
* @param string $type
41514172
* @return $this
41524173
*
@@ -4208,6 +4229,7 @@ public function castBinding($value)
42084229
/**
42094230
* Merge an array of bindings into our bindings.
42104231
*
4232+
* @param self $query
42114233
* @return $this
42124234
*/
42134235
public function mergeBindings(self $query)
@@ -4220,7 +4242,8 @@ public function mergeBindings(self $query)
42204242
/**
42214243
* Remove all of the expressions from a list of bindings.
42224244
*
4223-
* @return array
4245+
* @param array<mixed> $bindings
4246+
* @return list<mixed>
42244247
*/
42254248
public function cleanBindings(array $bindings)
42264249
{

0 commit comments

Comments
 (0)
0