Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP fatal error in PHP 8 #5

Open
aschuch247 opened this issue Dec 8, 2022 · 0 comments
Open

PHP fatal error in PHP 8 #5

aschuch247 opened this issue Dec 8, 2022 · 0 comments

Comments

@aschuch247
Copy link

The code uses curly brackets to access byte offsets of a string. PHP does not support curly brackets for this any more and instead requires square brackets. So for the code to work in PHP 8 and in older versions of PHP, just use square brackets.

PHP Fatal error: Array and string offset access syntax with curly braces is no longer supported in /metar-php-0.1.1/src/Message.php on line 88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant