From ca3968e87e19423ca50f8e58a52377dd08d1bea0 Mon Sep 17 00:00:00 2001 From: Thijs Zumbrink Date: Fri, 7 Jun 2024 12:47:55 +0200 Subject: [PATCH] Fix https://github.com/dcarbone/php-fhir/issues/117 (#118) --- 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(