Add getter for json and list data

This commit is contained in:
Dennis Eichhorn 2018-09-15 14:35:00 +02:00
parent a4f0d7c13b
commit 362631a6ec

View File

@ -214,11 +214,15 @@ abstract class RequestAbstract implements MessageInterface
$list = \explode($delim, $this->data[$key]);
if ($list === false) {
return [];
}
foreach ($list as $i => $e) {
$list[$i] = \trim($e);
}
return $list === false ? [] : $list;
return $list;
}
/**