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.
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):
This PR changes those places to use square braces instead.