sebastianbergmann/php-token-stream — pull request #27 by christeredvartsen (2012-12-19 13:23:46+00:00)
Title: Incorrect detection of arguments in closures

This PR fixes an issue where PHP_TokenStream does not recognize all parameters in closures. Currently it does not detect both params in the following closure:

```
$function1 = function($foo, $bar) use ($var) {};
```

This is because it assumes a function name exists, and skips 3 tokens, and in the above case, the third token is a parameter.