diff --git a/test/php/regression/Bug11831Test.php b/test/php/regression/Bug11831Test.php index 9264c46f9..7f15e7c55 100644 --- a/test/php/regression/Bug11831Test.php +++ b/test/php/regression/Bug11831Test.php @@ -30,7 +30,8 @@ EOT; $reflection = new ReflectionClass($module); $prop = $reflection->getProperty('metadataFile'); $prop->setAccessible(true); - $prop->setValue($module, stream_get_meta_data($moduleInfoFile)['uri']); + $meta = stream_get_meta_data($moduleInfoFile); + $prop->setValue($module, $meta['uri']); $this->assertEquals($module->getVersion(), '1.0.0'); fclose($moduleInfoFile); }