Skip to content

Commit 0b8bca6

Browse files
authored
Optimized code for database-sqlsever. (#7719)
1 parent 471fb91 commit 0b8bca6

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/Connection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,9 @@ public function setTablePrefix(string $prefix): static
977977

978978
/**
979979
* Set the table prefix and return the grammar.
980+
* @template T of Grammar
981+
* @param T $grammar
982+
* @return T
980983
*/
981984
public function withTablePrefix(Grammar $grammar): Grammar
982985
{

src/Query/Builder.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@ class Builder
124124

125125
/**
126126
* The table joins for the query.
127-
*
128-
* @var array
129127
*/
130-
public $joins;
128+
public ?array $joins = null;
131129

132130
/**
133131
* The where constraints for the query.
@@ -1273,7 +1271,7 @@ public function orWhereYear($column, $operator, $value = null)
12731271
* Add a nested where statement to the query.
12741272
*
12751273
* @param string $boolean
1276-
* @return Builder|static
1274+
* @return static
12771275
*/
12781276
public function whereNested(Closure $callback, $boolean = 'and')
12791277
{

0 commit comments

Comments
 (0)