harrydeluxe/php-liquid — pull request #21 by maddes (2014-01-23 05:20:42+00:00)
Title: Duplicated codebase hinders functionality.

Objects properties were unable to be accessed due to misplaced code.

The chunk of code removed (lines 272..279) rendered the following (308..350) useless in case of an object variable.

Now, I can safely do as follows:

class Foo
{
public $bar = "Hello World!";
}
$assigns = array('foo' => new Foo);
print $liquid->render($assigns);

and then access the property in the template with:

{{ foo.bar }}

Otherwise, it just throwed the LiquidException with message `Method 'toLiquid' not exists!`