Skip to content

Commit

Permalink
Update lessify.inc.php
Browse files Browse the repository at this point in the history
Fix for Declaration of lessify::parse() should be compatible with lessc::parse($str = NULL, $initialVariables = NULL)
  • Loading branch information
ybenassuli committed Apr 12, 2013
1 parent 51aad6e commit 58029c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lessify.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ public function dump() {
}

public function parse($str = null) {
$this->parse($str,null);
}

public function parse($str = null, $initialVariables = null) {
$this->prepareParser($str ? $str : $this->buffer);
while (false !== $this->parseChunk());

Expand Down

2 comments on commit 58029c1

@robocoder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This issue duplicates issue leafo#351.

BTW I suspect this won't work (e.g., Fatal error: Cannot redeclare lessify::parse).

@ybenassuli
Copy link
Owner Author

@ybenassuli ybenassuli commented on 58029c1 May 6, 2013 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.