Skip to content

Commit

Permalink
Fix escaping for stricter php7.3. Escaping the minus is the right fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse LaVere committed Apr 1, 2019
1 parent a4809fb commit cf24e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/ResultSet/Transformer/NumberTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class NumberTransformer
public function __invoke(string $value)
{
$cleanedValue = preg_replace_callback(
'(^[^\d-\.]*(-?)([^.]*)(.?)(.*)$)',
'(^[^\d\-.]*(-?)([^.]*)(.?)(.*)$)',
function (array $match) : string {
return
$match[1]
Expand Down

0 comments on commit cf24e7b

Please sign in to comment.