From 8f25dc3539176cc4932dc536669bfa284c74c563 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 4 Jan 2017 18:07:57 +0100 Subject: [PATCH] Bug11831Test: fix PHP 5.3 compatibility --- test/php/regression/Bug11831Test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }