From 4e860363954c81f420f0497a5597a201cfba572b Mon Sep 17 00:00:00 2001 From: Thijs Zumbrink Date: Fri, 7 Jun 2024 10:25:04 +0200 Subject: [PATCH] Fix https://github.com/dcarbone/php-fhir/issues/117 --- template/core/classes/class_response_parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/core/classes/class_response_parser.php b/template/core/classes/class_response_parser.php index 3f493704..34db0945 100644 --- a/template/core/classes/class_response_parser.php +++ b/template/core/classes/class_response_parser.php @@ -232,9 +232,9 @@ public function parseString(string $input): null|parseXml($input); - } elseif (in_array(self::JSON_START, $chr, true)) { + } elseif (in_array($chr, self::JSON_START, true)) { return $this->parseJson($input); } throw new \UnexpectedValueException(sprintf(