Andrewsville / PHP-Token-Reflection

Library emulating the PHP internal reflection using just the tokenized source code
http://andrewsville.github.com/PHP-Token-Reflection/
Other
190 stars 44 forks source link

[TokenReflection\Exception\ParseException] Unexpected token found. #76

Open alexrgb opened 8 years ago

alexrgb commented 8 years ago

Parser couldn't correctly parse keyword "class". For example:

<?php return [ 'someKey' => some\name\space\SomeClass:class // couldn't parse 'someOtherKey => 'some\name\space\SomeClass' // as string everything is correct. ];

I faced with this issue, when use Yii2 array fixtures in codeception. I hope, it would be helpful fo smb.

jankal commented 7 years ago

Consider using goaop/parser-reflection