metar-php
metar-php copied to clipboard
PHP fatal error in PHP 8
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