mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +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 */
|
||||
|
||||
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