Skip to content

Commit

Permalink
Fix #117 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucidTaZ committed Jun 7, 2024
1 parent da0da8b commit ca3968e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/core/classes/class_response_parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ public function parseString(string $input): null|<?php echo PHPFHIR_INTERFACE_TY
return null;
}
$chr = $input[0];
if (in_array(self::XML_START, $chr, true)) {
if (in_array($chr, self::XML_START, true)) {
return $this->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(
Expand Down

0 comments on commit ca3968e

Please sign in to comment.