-
-
Notifications
You must be signed in to change notification settings - Fork 86
Closed
Labels
Description
I have problem with comparing null value
This works
$factory = new SimpleFactory();
$matcher = $factory->createMatcher();
$json1 = '{"proformaInvoiceLink":null}';
$json2 = '{"proformaInvoiceLink":null}';
$match = $matcher->match($json1, $json2);
But this not works
$factory = new SimpleFactory();
$matcher = $factory->createMatcher();
$json1 = '{"proformaInvoiceLink":null, "test":"test"}';
$json2 = '{"proformaInvoiceLink":null, "test":"@string@"}';
$match = $matcher->match($json1, $json2);
When I use @null@ it works
$factory = new SimpleFactory();
$matcher = $factory->createMatcher();
$json1 = '{"proformaInvoiceLink":null, "test":"test"}';
$json2 = '{"proformaInvoiceLink":@null@, "test":"@string@"}';
$match = $matcher->match($json1, $json2);
I think that second example should works too.