Skip to content

Commit 7178c16

Browse files
authored
Improve PHPDoc (#52949)
1 parent e1f1cde commit 7178c16

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/Illuminate/Database/Connection.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,8 +1634,10 @@ public function setTablePrefix($prefix)
16341634
/**
16351635
* Set the table prefix and return the grammar.
16361636
*
1637-
* @param \Illuminate\Database\Grammar $grammar
1638-
* @return \Illuminate\Database\Grammar
1637+
* @template TGrammar of \Illuminate\Database\Grammar
1638+
*
1639+
* @param TGrammar $grammar
1640+
* @return TGrammar
16391641
*/
16401642
public function withTablePrefix(Grammar $grammar)
16411643
{
@@ -1670,7 +1672,7 @@ public static function resolverFor($driver, Closure $callback)
16701672
* Get the connection resolver for the given driver.
16711673
*
16721674
* @param string $driver
1673-
* @return mixed
1675+
* @return \Closure|null
16741676
*/
16751677
public static function getResolver($driver)
16761678
{

src/Illuminate/Database/Eloquent/Relations/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public function getRelationCountHash($incrementJoinCount = true)
284284
*
285285
* @param array<int, TDeclaringModel> $models
286286
* @param string|null $key
287-
* @return array<int, int|string>
287+
* @return array<int, int|string|null>
288288
*/
289289
protected function getKeys(array $models, $key = null)
290290
{

src/Illuminate/Database/Query/Builder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class Builder implements BuilderContract
149149
/**
150150
* The maximum number of records to return.
151151
*
152-
* @var int
152+
* @var int|null
153153
*/
154154
public $limit;
155155

@@ -177,14 +177,14 @@ class Builder implements BuilderContract
177177
/**
178178
* The maximum number of union records to return.
179179
*
180-
* @var int
180+
* @var int|null
181181
*/
182182
public $unionLimit;
183183

184184
/**
185185
* The number of union records to skip.
186186
*
187-
* @var int
187+
* @var int|null
188188
*/
189189
public $unionOffset;
190190

0 commit comments

Comments
 (0)