Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
segy committed Oct 28, 2018
1 parent da32b92 commit 4001598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pohoda/Common/OptionsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 4001598

Please sign in to comment.