metar-php icon indicating copy to clipboard operation
metar-php copied to clipboard

PHP fatal error in PHP 8

Open aschuch247 opened this issue 2 years ago • 0 comments

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

aschuch247 avatar Dec 08 '22 16:12 aschuch247