diff --git a/tests/QueryTest.php b/tests/QueryTest.php index f7697fc4..1a502757 100644 --- a/tests/QueryTest.php +++ b/tests/QueryTest.php @@ -458,7 +458,8 @@ public function testFacets() { $connection = $this->getConnection(); - $sphinxVersion = $connection->createCommand("SHOW GLOBAL VARIABLES LIKE 'version'")->queryOne()['Value'] ?? ''; + $rawSphinxVersion = $connection->createCommand("SHOW GLOBAL VARIABLES LIKE 'version'")->queryOne(); + $sphinxVersion = isset($rawSphinxVersion['Value']) ? $rawSphinxVersion['Value'] : ''; $query = new Query(); $results = $query->from('yii2_test_article_index')