mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
make getDataJson return array also for single values
This commit is contained in:
parent
11d2ed8f2e
commit
9843328a14
|
|
@ -238,7 +238,11 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
|
|
||||||
$json = \json_decode($this->data[$key], true); /** @phpstan-ignore-line */
|
$json = \json_decode($this->data[$key], true); /** @phpstan-ignore-line */
|
||||||
|
|
||||||
return \is_array($json) ? $json : [];
|
if ($json === null) {
|
||||||
|
$json = $this->data[$key];
|
||||||
|
}
|
||||||
|
|
||||||
|
return \is_array($json) ? $json : [$json];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user