Skip to content

Commit

Permalink
fix: deal with variable overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Oct 26, 2023
1 parent bf65af5 commit 698a285
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SteerConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ public function __construct(
public function getAssessmentData(QueryBuilder|array $filters, ?int $year = null): Response
{
if ($filters instanceof QueryBuilder) {
$filters = $filters->filters;
$year = $filters->year;
$queryBuilder = $filters;
$filters = $queryBuilder->filters;
$year = $queryBuilder->year;
}
return $this->send(new QueryDataRequest($filters, $year))->throw();
}
Expand Down

0 comments on commit 698a285

Please sign in to comment.