diff icon indicating copy to clipboard operation
diff copied to clipboard

Empty chunks on diff

Open gemal opened this issue 6 months ago • 0 comments

I have a unit test that sometimes fails

Our code is:

$differ = new Differ();
$msg = $differ->diff($oldData, $newData);

if I do: print_r($parser->parse($msg));

I get:

array (
  0 => 
  SebastianBergmann\Diff\Diff::__set_state(array(
     'from' => 'Original',
     'to' => 'New',
     'chunks' => 
    array (
    ),
  )),
)

which makes no sense. If chunks are empty, if there really a diff? how can it be empty?

gemal avatar Jul 04 '25 08:07 gemal