We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8d4ae commit 0972b45Copy full SHA for 0972b45
Plugin/FrontControllerDispatch.php
@@ -42,7 +42,7 @@ public function beforeDispatch(FrontControllerInterface $subject, RequestInterfa
42
public function afterDispatch(FrontControllerInterface $subject, $result, RequestInterface $request): mixed
43
{
44
if ($this->config->isEnabled() && !$request->isXmlHttpRequest()) {
45
- $exceptions = $result instanceof RestResponse ? $result->getException() : '';
+ $exceptions = $result instanceof RestResponse ? $result->getException() : [];
46
if ($exceptions !== []) {
47
$responseCode = '';
48
$responseBody = '';
0 commit comments