Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Add __toString() method. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

0b10011
Copy link

@0b10011 0b10011 commented Jul 17, 2012

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant