From a62bc31a3646a226d006b4051862cd2285db6586 Mon Sep 17 00:00:00 2001 From: kulikov-a <36099472+kulikov-a@users.noreply.github.com> Date: Tue, 20 Sep 2022 16:54:25 +0300 Subject: [PATCH] simplepie: type cast (#6044) --- contrib/simplepie/library/SimplePie/Parse/Date.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/simplepie/library/SimplePie/Parse/Date.php b/contrib/simplepie/library/SimplePie/Parse/Date.php index 25e9d47fa..672cb20f0 100644 --- a/contrib/simplepie/library/SimplePie/Parse/Date.php +++ b/contrib/simplepie/library/SimplePie/Parse/Date.php @@ -690,7 +690,7 @@ class SimplePie_Parse_Date } // Convert the number of seconds to an integer, taking decimals into account - $second = round($match[6] + $match[7] / pow(10, strlen($match[7]))); + $second = round((int)$match[6] + (int)$match[7] / pow(10, strlen($match[7]))); return gmmktime($match[4], $match[5], $second, $match[2], $match[3], $match[1]) - $timezone; }