Skip to content
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

[11.x] Improve PHPDoc #52949

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions src/Illuminate/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1634,8 +1634,10 @@ public function setTablePrefix($prefix)
/**
* Set the table prefix and return the grammar.
*
* @param \Illuminate\Database\Grammar $grammar
* @return \Illuminate\Database\Grammar
* @template TGrammar of \Illuminate\Database\Grammar
*
* @param TGrammar $grammar
* @return TGrammar
*/
public function withTablePrefix(Grammar $grammar)
{
Expand Down Expand Up @@ -1670,7 +1672,7 @@ public static function resolverFor($driver, Closure $callback)
* Get the connection resolver for the given driver.
*
* @param string $driver
* @return mixed
* @return \Closure|null
*/
public static function getResolver($driver)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Relations/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public function getRelationCountHash($incrementJoinCount = true)
*
* @param array<int, TDeclaringModel> $models
* @param string|null $key
* @return array<int, int|string>
* @return array<int, int|string|null>
*/
protected function getKeys(array $models, $key = null)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class Builder implements BuilderContract
/**
* The maximum number of records to return.
*
* @var int
* @var int|null
*/
public $limit;

Expand Down Expand Up @@ -177,14 +177,14 @@ class Builder implements BuilderContract
/**
* The maximum number of union records to return.
*
* @var int
* @var int|null
*/
public $unionLimit;

/**
* The number of union records to skip.
*
* @var int
* @var int|null
*/
public $unionOffset;

Expand Down