Skip to content

Commit

Permalink
Fix the phpstan 😄
Browse files Browse the repository at this point in the history
  • Loading branch information
Joossensei committed Nov 26, 2021
1 parent 0cf1c20 commit dc56804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Storage/SelectQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function build(): QueryBuilder
$fieldName = preg_replace('/(_[0-9]+)$/', '', $key);
// Use strtotime on 'date' fields to allow selections like "today", "in 3 weeks" or "this year"
if (in_array($fieldName, $dateFields, true) && (strtotime($param) !== false)) {
$param = Carbon::parse(strtotime($param))->toIso8601ZuluString('milisecond');
$param = Carbon::parse((string) strtotime($param))->toIso8601ZuluString('milisecond');
}

if (in_array($fieldName, $this->regularFields, true) && ! in_array($fieldName, $numberFields, true)) {
Expand Down

0 comments on commit dc56804

Please sign in to comment.