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

Change deprecated syntax for array access #79

Open nilllzz opened 3 years ago

nilllzz commented 3 years ago

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 on PHP 8.0.8):

PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in andrewsville/php-token-reflection/TokenReflection/Broker.php on line 284

This PR changes those places to use square braces instead.