coduo/php-matcher

Bug while comparing floats

andriusvo opened this issue · 2 comments

While comparing two arrays, and in both there is same float value, matcher does not match.
F.E. $payload1 = ['number' => 123.45, 'key' => 'random']
$payload2 = ['number' => 123.45, 'key' => 'random']

Error - "123.45" does not match "123.45". (Exception)

I can't reproduce this. @SSMellow please provide a full working code example

Closing since I wasn't able to reproduce it as well. @SSMellow please open a PR with failing tests case for this issue, then we will try to help you