From d0a43ea1ced7467a4bee6995c470bfa88ab7c0ce Mon Sep 17 00:00:00 2001 From: Joossensei Date: Fri, 26 Nov 2021 13:18:42 +0100 Subject: [PATCH] Fix the phpstan :smile: --- src/Storage/SelectQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storage/SelectQuery.php b/src/Storage/SelectQuery.php index fb97c97f0..897655537 100644 --- a/src/Storage/SelectQuery.php +++ b/src/Storage/SelectQuery.php @@ -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)) {