Closed victorynox closed 8 years ago
Нет проверки на существование массива $overwriteMode = $overwriteModeHeader[0] === '*' ? true : false;
$overwriteMode = $overwriteModeHeader[0] === '*' ? true : false;
if (false !== strpos($contenttype[0], 'json')) { $body = $this->jsonDecode($request->getBody()->__toString()); $request = $request->withParsedBody($body); } else { //todo XML? }
Fixed
Нет проверки на существование массива
$overwriteMode = $overwriteModeHeader[0] === '*' ? true : false;
if (false !== strpos($contenttype[0], 'json')) { $body = $this->jsonDecode($request->getBody()->__toString()); $request = $request->withParsedBody($body); } else { //todo XML? }