Skip to content

Commit

Permalink
Fix CTE
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed Sep 28, 2023
1 parent 2538828 commit 40a97ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/DQLQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,13 @@ protected function extractAlias(string $table): array|bool

return parent::extractAlias($table);
}

public function buildWithQueries(array $withs, array &$params): string
{
foreach ($withs as &$with) {

Check failure on line 115 in src/DQLQueryBuilder.php

View workflow job for this annotation

GitHub Actions / PHP 8.0

MixedAssignment

src/DQLQueryBuilder.php:115:29: MixedAssignment: Unable to determine the type that $with is being assigned to (see https://psalm.dev/032)

Check failure on line 115 in src/DQLQueryBuilder.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

MixedAssignment

src/DQLQueryBuilder.php:115:29: MixedAssignment: Unable to determine the type that $with is being assigned to (see https://psalm.dev/032)

Check failure on line 115 in src/DQLQueryBuilder.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

MixedAssignment

src/DQLQueryBuilder.php:115:29: MixedAssignment: Unable to determine the type that $with is being assigned to (see https://psalm.dev/032)
$with['recursive'] = false;

Check failure on line 116 in src/DQLQueryBuilder.php

View workflow job for this annotation

GitHub Actions / PHP 8.0

MixedArrayAssignment

src/DQLQueryBuilder.php:116:13: MixedArrayAssignment: Cannot access array value on mixed variable $with['recursive'] (see https://psalm.dev/117)

Check failure on line 116 in src/DQLQueryBuilder.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

MixedArrayAssignment

src/DQLQueryBuilder.php:116:13: MixedArrayAssignment: Cannot access array value on mixed variable $with['recursive'] (see https://psalm.dev/117)

Check failure on line 116 in src/DQLQueryBuilder.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

MixedArrayAssignment

src/DQLQueryBuilder.php:116:13: MixedArrayAssignment: Cannot access array value on mixed variable $with['recursive'] (see https://psalm.dev/117)
}

return parent::buildWithQueries($withs, $params);
}
}

0 comments on commit 40a97ca

Please sign in to comment.