Skip to content

Commit

Permalink
Resolve error
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Aug 28, 2024
1 parent 6ccfd4d commit ffb33b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ parameters:
- '#Call to an undefined method TModel of Illuminate\\Database\\Eloquent\\Model#'
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Model::#'
- '#Call to an undefined method Illuminate\\Database\\Eloquent\\Builder#'
- '#Call to an undefined method Staudenmeir\\LaravelAdjacencyList\\Query\\Grammars\\ExpressionGrammar::wrap\(\)#'
- '#PHPDoc tag \@param for parameter \$grammar with type Illuminate\\Database\\Grammar\|Staudenmeir\\LaravelAdjacencyList\\Query\\Grammars\\ExpressionGrammar is not subtype#'
8 changes: 8 additions & 0 deletions src/Query/Grammars/ExpressionGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,12 @@ public function compileCycleDetectionStopConstraint(string $column): string;
* @return bool
*/
public function supportsUnionInRecursiveExpression(): bool;

/**
* Wrap a value in keyword identifiers.
*
* @param \Illuminate\Contracts\Database\Query\Expression|string $value
* @return string
*/
public function wrap($value);
}

0 comments on commit ffb33b0

Please sign in to comment.