8000 [12.x] added detailed doc types to bindings related methods by taka-oyama · Pull Request #55576 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[12.x] added detailed doc types to bindings related methods #55576

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,17 @@ class Builder implements BuilderContract
/**
* The current query value bindings.
*
* @var array
* @var array{
* select: list<mixed>,
* from: list<mixed>,
* join: list<mixed>,
* where: list<mixed>,
* groupBy: list<mixed>,
* having: list<mixed>,
* order: list<mixed>,
* union: list<mixed>,
* unionOrder: list<mixed>,
* }
*/
public $bindings = [
'select' => [],
Expand Down Expand Up @@ -4127,7 +4137,7 @@ public function getOffset()
/**
* Get the current query value bindings in a flattened array.
*
* @return array
* @return list<mixed>
*/
public function getBindings()
{
Expand All @@ -4137,7 +4147,17 @@ public function getBindings()
/**
* Get the raw array of bindings.
*
* @return array
* @return array{
* select: list<mixed>,
* from: list<mixed>,
* join: list<mixed>,
* where: list<mixed>,
* groupBy: list<mixed>,
* having: list<mixed>,
* order: list<mixed>,
* union: list<mixed>,
* unionOrder: list<mixed>,
* }
*/
public function getRawBindings()
{
Expand All @@ -4147,6 +4167,7 @@ public function getRawBindings()
/**
* Set the bindings on the query builder.
*
* @param list<mixed> $bindings
* @param string $type
* @return $this
*
Expand Down Expand Up @@ -4208,6 +4229,7 @@ public function castBinding($value)
/**
* Merge an array of bindings into our bindings.
*
* @param self $query
* @return $this
*/
public function mergeBindings(self $query)
Expand All @@ -4220,7 +4242,8 @@ public function mergeBindings(self $query)
/**
* Remove all of the expressions from a list of bindings.
*
* @return array
* @param array<mixed> $bindings
* @return list<mixed>
*/
public function cleanBindings(array $bindings)
{
Expand Down
Loading
0