From 615f18b5d1e24152a1f3e5a92e408d6b1bf75d5d Mon Sep 17 00:00:00 2001 From: Markus Kalkbrenner Date: Wed, 11 Sep 2019 13:34:43 +0200 Subject: [PATCH] Solarium\Component\ResponseParser\Debug fails on Solr Cloud 6.x during extracting timing phases fixes #701 --- CHANGELOG.md | 4 ++++ src/Component/ResponseParser/Debug.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16863c552..221eb3c80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to the solarium library will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [5.1.3] +### Fixed +- Solarium\Component\ResponseParser\Debug fails on Solr Cloud 6.x during extracting timing phases + ## [5.1.2] ### Fixed - BufferedAdd does not support Symfony event dispatcher diff --git a/src/Component/ResponseParser/Debug.php b/src/Component/ResponseParser/Debug.php index 59a02de09..960a1152e 100644 --- a/src/Component/ResponseParser/Debug.php +++ b/src/Component/ResponseParser/Debug.php @@ -63,8 +63,9 @@ public function parse(?ComponentAwareQueryInterface $query, ?AbstractComponent $ case 'time': $time = $timingData; break; - default: + case is_array($timingData): $timingPhases[$key] = $this->parseTimingPhase($key, $timingData); + break; } } $timing = new Timing($time, $timingPhases);