PHP-FineDiff icon indicating copy to clipboard operation
PHP-FineDiff copied to clipboard

Add __toString() method.

Open 0b10011 opened this issue 12 years ago • 0 comments

Currently, it takes a bit of digging to find the correct functions to use, and the following code causes an error:

<?php
$diff = new FineDiff($from, $to);
echo $diff;
?>

However, adding the magic __toString() method makes this return the HTML diff (as I, using it for the first time, assumed would occur).

0b10011 avatar Jul 17 '12 14:07 0b10011