Skip to content

Commit 0972b45

Browse files
authored
Fix typo
1 parent da8d4ae commit 0972b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Plugin/FrontControllerDispatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function beforeDispatch(FrontControllerInterface $subject, RequestInterfa
4242
public function afterDispatch(FrontControllerInterface $subject, $result, RequestInterface $request): mixed
4343
{
4444
if ($this->config->isEnabled() && !$request->isXmlHttpRequest()) {
45-
$exceptions = $result instanceof RestResponse ? $result->getException() : '';
45+
$exceptions = $result instanceof RestResponse ? $result->getException() : [];
4646
if ($exceptions !== []) {
4747
$responseCode = '';
4848
$responseBody = '';

0 commit comments

Comments
 (0)