From 875f3ca6dce9326155d5b649a3f090daf30212c7 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 17 Dec 2022 17:37:49 +0100 Subject: [PATCH] fix phpstan error --- _public.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_public.php b/_public.php index cf23222..75261bc 100644 --- a/_public.php +++ b/_public.php @@ -179,11 +179,11 @@ class pubSaba if ($age[0]) { $params['sql'] .= "AND P.post_dt < '" . - dt::str('%Y-%m-%d %H:%m:%S', $ts - $age[0]) . "' "; + dt::str('%Y-%m-%d %H:%m:%S', $ts - (int) $age[0]) . "' "; } if ($age[1]) { $params['sql'] .= "AND P.post_dt > '" . - dt::str('%Y-%m-%d %H:%m:%S', $ts - $age[1]) . "' "; + dt::str('%Y-%m-%d %H:%m:%S', $ts - (int) $age[1]) . "' "; } }