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

Support scalar expressions for constants #72

Closed kdambekalns closed 8 years ago

kdambekalns commented 9 years ago

This allows ReflectionConstant to parse scalar expressions when defining constants, such as:

const FOO = 1 ** 2;
const BAR = array(1 => 'one');
const BAZ = 'foo' . 'bar';
const QUX = \Acme\Com\Demo::class;

Should fix #62 and #69.

kdambekalns commented 9 years ago

Ok, now I realized the unit tests fail massively, even without that change. I started to fix them, but for now have to get back to work.

kdambekalns commented 8 years ago

Switched to a different library for my latest project…