From 40015983d7bf9bbd4f26252e5c8344d17d1c3f8a Mon Sep 17 00:00:00 2001 From: Tomas Saghy Date: Sun, 28 Oct 2018 23:06:06 +0100 Subject: [PATCH] phpstan --- src/Pohoda/Common/OptionsResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pohoda/Common/OptionsResolver.php b/src/Pohoda/Common/OptionsResolver.php index e912270..49b3e12 100644 --- a/src/Pohoda/Common/OptionsResolver.php +++ b/src/Pohoda/Common/OptionsResolver.php @@ -88,7 +88,7 @@ protected function _createNormalizer(string $type, $param = null): \Closure case 'float': case 'number': return function ($options, $value) { - return (string) \floatval(\str_replace(',', '.', \preg_replace('/[^0-9,.-]/', '', $value))); + return (string) \floatval(\str_replace(',', '.', \strval(\preg_replace('/[^0-9,.-]/', '', $value)))); }; case 'int':