diff --git a/tests/MetarDecoderTest.php b/tests/MetarDecoderTest.php
index <HASH>..<HASH> 100644
--- a/tests/MetarDecoderTest.php
+++ b/tests/MetarDecoderTest.php
@@ -182,7 +182,8 @@ class MetarDecoderTest extends \PHPUnit_Framework_TestCase
         $d = $this->decoder->parseNotStrict($metar);
         $this->assertFalse($d->isValid());
         $this->assertEquals(1, count($d->getDecodingExceptions()));
-        $error = $d->getDecodingExceptions()[0];
+        $errors = $d->getDecodingExceptions();
+        $error = $errors[0];
         $this->assertEquals('CloudChunkDecoder', $error->getChunkDecoder());
         $this->assertNull($d->getClouds());
     }
Ensure compatibility for PHP<I>