From e76c2b679a83b7f17aaeac4ee3a85e7623c613ab Mon Sep 17 00:00:00 2001 From: Ruflin Date: Sat, 17 Oct 2015 18:39:02 -0700 Subject: [PATCH] Fix PHP 5.3 issue --- test/lib/Elastica/Test/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/Elastica/Test/Base.php b/test/lib/Elastica/Test/Base.php index 6525562f4d..527e95577f 100644 --- a/test/lib/Elastica/Test/Base.php +++ b/test/lib/Elastica/Test/Base.php @@ -1,4 +1,3 @@ -_getClient()->getCluster()->getNodes()[0]->getInfo()->get('settings', 'script', 'inline'); + $nodes = $this->_getClient()->getCluster()->getNodes() + $scriptInline = $nodes[0]->getInfo()->get('settings', 'script', 'inline'); if ($scriptInline != 'on') { $this->markTestSkipped('script.inline is not enabled. This is required for this test');