We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8859f commit cb96babCopy full SHA for cb96bab
1 file changed
src/Json.php
@@ -1107,7 +1107,7 @@ private function translateJson(): void
1107
public function setJson(string|object|array $json): self
1108
{
1109
$this->json = match (true) {
1110
- $json instanceof $this => $json->getArray(),
+ $json instanceof $this, $json instanceof Json => $json->getArray(),
1111
$json instanceof File => $this->convertJsonToArray($json->getContentAsText()),
1112
is_string($json) => $this->convertJsonToArray($json),
1113
is_array($json) => $json,
0 commit comments