PHP-Token-Reflection
PHP-Token-Reflection copied to clipboard
Library emulating the PHP internal reflection using just the tokenized source code
Two instances of the code use a deprecated (as of PHP 8) way of accessing arrays, by using curly braces (`{}`). This generates a PHP Fatal Error at runtime (tested...
In PHP nightly builds (PHP 7.2.0-dev) used on Travis CI, I'm receiving the following fatal error: ``` PHP Fatal error: Declaration of ReflectionClass::newInstance(...$args) must be compatible with TokenReflection\IReflectionClass::newInstance($args) in /home/travis/build/ramsey/uuid/vendor/andrewsville/php-token-reflection/TokenReflection/Php/ReflectionClass.php...
In ApiGen documentation which uses PHP-Token-Reflection \Exception in constructor is \PHP\Lang\Exception (should be \Exception). Is it a bug in PHP-Token-Reflection? Here is a sample code:
Parser couldn't correctly parse keyword "class". For example: >
The current state of the project is that a lot of tests fail, even on PHP 5.3 and 5.4, as is clearly visible on TravisCI. This is really a bad...
When use PHP 7: Return type declarations it's cause `[TokenReflection\Exception\ParseException] Unexpected token found.` Description for the new feature in PHP 7: [http://php.net/manual/en/functions.returning-values.php](http://php.net/manual/en/functions.returning-values.php) I'm using "codeception/aspect-mock": "*".
Added support for constants with PHP short array syntax. Applicable for PHP 5.6 and above.
Hi, in the apigen-Project we found the following issue: https://github.com/apigen/apigen/issues/272 Could be solved with this PR. Thanks, Thomas
Example: `TraitA.php` ``` php
Hello, thanks for the great tool. > The basic concept is, that any reflection is possible to process the particular part of the token array describing the reflected element. I...