Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Change deprecated syntax for array access#79

Open
nilllzz wants to merge 1 commit intoAndrewsville:developfrom
nilllzz:fix-deprecated-array-access
Open

Change deprecated syntax for array access#79
nilllzz wants to merge 1 commit intoAndrewsville:developfrom
nilllzz:fix-deprecated-array-access

Conversation

@nilllzz
Copy link
Copy Markdown

@nilllzz nilllzz commented Aug 30, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant