reneoelke / Php53to54

PHP_CodeSniffer standard for compatibility checking of PHP 5.3 to 5.4 migrations.
http://foobugs.com
Other
6 stars 1 forks source link

getFunctionCallParameters does not parse dynamic statements correctly #77

Open goatherd opened 11 years ago

goatherd commented 11 years ago

at least those are not parsed incorrectly:

foo(array($foo, 1, 'a')); // parsed as three distinct arguments
foo(new $someClass($foo, 1, 'a')); // parsed as 4 distinct arguments

At least CallTimePassByReference is affected.

goatherd commented 11 years ago

Should add a unit test for this. Might require to extend bootstrapping to autoload through composer.