Skip to content

Commit

Permalink
Increase PHPStan level
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Dec 9, 2024
1 parent edc2a25 commit b2fd9ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Grammars/Traits/CompilesMySqlJsonQueries.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public function compileMemberOf(string $column, ?string $objectKey, mixed $value
{
$columnWithKey = $objectKey ? $column . (str_contains($column, '->') ? '[*]' : '') . "->$objectKey" : $column;

/** @var string $field */
/** @var string $path */
[$field, $path] = $this->wrapJsonFieldAndPath($columnWithKey);

if ($objectKey && !str_contains($column, '->')) {
Expand Down

0 comments on commit b2fd9ac

Please sign in to comment.