Skip to content

Commit

Permalink
Adjust to Laravel changes
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Feb 2, 2025
1 parent c99fe1a commit 8889652
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Grammars/JsonGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface JsonGrammar
/**
* Compile a "JSON array" statement into SQL.
*
* @param string|\Illuminate\Database\Query\Expression $column
* @param string|\Illuminate\Database\Query\Expression<*> $column
* @return string
*/
public function compileJsonArray($column);
Expand Down
2 changes: 1 addition & 1 deletion src/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PostgresGrammar extends Base implements JsonGrammar
/**
* Compile a "JSON array" statement into SQL.
*
* @param string|\Illuminate\Database\Query\Expression $column
* @param string|\Illuminate\Database\Query\Expression<*> $column
* @return string
*/
public function compileJsonArray($column)
Expand Down
2 changes: 1 addition & 1 deletion src/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SQLiteGrammar extends Base implements JsonGrammar
/**
* Compile a "JSON array" statement into SQL.
*
* @param string|\Illuminate\Database\Query\Expression $column
* @param string|\Illuminate\Database\Query\Expression<*> $column
* @return string
*/
public function compileJsonArray($column)
Expand Down
2 changes: 1 addition & 1 deletion src/Grammars/SqlServerGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class SqlServerGrammar extends Base implements JsonGrammar
/**
* Compile a "JSON array" statement into SQL.
*
* @param string|\Illuminate\Database\Query\Expression $column
* @param string|\Illuminate\Database\Query\Expression<*> $column
* @return string
*/
public function compileJsonArray($column)
Expand Down
2 changes: 1 addition & 1 deletion src/Grammars/Traits/CompilesMySqlJsonQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ trait CompilesMySqlJsonQueries
/**
* Compile a "JSON array" statement into SQL.
*
* @param string|\Illuminate\Database\Query\Expression $column
* @param string|\Illuminate\Database\Query\Expression<*> $column
* @return string
*/
public function compileJsonArray($column)
Expand Down
2 changes: 1 addition & 1 deletion src/Relations/Postgres/IsPostgresRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait IsPostgresRelation
* @param \Illuminate\Database\Eloquent\Model $model
* @param string $column
* @param string $key
* @return \Illuminate\Database\Query\Expression
* @return \Illuminate\Database\Query\Expression<*>
*/
protected function jsonColumn(Builder $query, Model $model, $column, $key)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function appendToDeepRelationship(array $through, array $foreignKeys, arr
* Get the custom through key for an eager load of the relation.
*
* @param string $alias
* @return \Illuminate\Database\Query\Expression
* @return \Illuminate\Database\Query\Expression<*>
*/
public function getThroughKeyForDeepRelationships(string $alias): Expression
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function mergeWhereConstraints(Builder $query, Builder $from): Builder
/** @var array<int, mixed> $whereBindings */
$whereBindings = $from->getQuery()->getRawBindings()['where'] ?? [];

$wheres = $from->getQuery()->wheres ?? [];
$wheres = $from->getQuery()->wheres;

$query->withoutGlobalScopes(
$from->removedScopes()
Expand Down

0 comments on commit 8889652

Please sign in to comment.