This commit is contained in:
as2252258@163.com
2021-08-04 01:28:00 +08:00
parent 0d8b51507d
commit da977a547a
+1 -1
View File
@@ -192,7 +192,7 @@ class Response extends HttpService
*/
private function parseData($context): mixed
{
if (!empty($context)) {
if (!empty($context) && !is_string($context)) {
/** @var IFormatter $class */
$class = $this->_format_maps[$this->format] ?? HtmlFormatter::class;