Closed tgr closed 1 year ago
(Also, FWIW, the documentation says you can create a Differ with no argument, but it requires an output builder now.)
Hi!
Can you point out where PHPUnit uses the diff
function with something other than strings or string-arrays?
I cannot recall that ever being supported as the package builds output in udiff
format which always apply to strings inputs only (AFAIK).
I also wonder what the expected output would be of (new SebastianBergmann\Diff\Differ($ob))->diff([1], [2])
(other than maybe a better exception)?
No feedback, closing.
Tested on latest main:
Not sure if this is a bug as the documentation doesn't say anything about diffing arrays, but the function signature suggests it's supported and PHPUnit uses it. The same command works fine with string values: