jlogsdon/php-cli-tools — pull request #55 by drakson (2014-06-16 13:10:55+00:00)
Title: Fixed static variable in class Lexer.

Pulled from https://github.com/wp-cli/php-cli-tools/pull/3, ignore the composer.json.

Static variables are shared between objects. In this case, we dont want this behaviour because each object has his own different properties.

To test it out, just create 2 Lexer objects and try to do 2 foreach with each one. The second object will be bugged in his loop.

This can also be tested calling 'parse' function at least twice in the same runtime.