summaryrefslogtreecommitdiff
path: root/src/Middleware
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-29 16:07:51 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-29 16:56:44 +0100
commita1e1d91a640995f40181f0b720f48d971b735b76 (patch)
treef3c3b3d0d57681beb9853c65c2fbbe11169eeeaf /src/Middleware
parentd203071de0798802c0024debd793ce89f180cc16 (diff)
PHP 7.4: Fixed xdebug code coverage
Diffstat (limited to 'src/Middleware')
-rw-r--r--src/Middleware/ErrorHandler.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Middleware/ErrorHandler.php b/src/Middleware/ErrorHandler.php
index 65e2e609..b8f8b166 100644
--- a/src/Middleware/ErrorHandler.php
+++ b/src/Middleware/ErrorHandler.php
@@ -67,13 +67,11 @@ class ErrorHandler implements MiddlewareInterface
if ($request instanceof Request) {
$session = $request->getSession();
- $session->set(
- 'errors',
- array_merge_recursive(
- $session->get('errors', []),
- ['validation' => $e->getValidator()->getErrors()]
- )
+ $errors = array_merge_recursive(
+ $session->get('errors', []),
+ ['validation' => $e->getValidator()->getErrors()]
);
+ $session->set('errors', $errors);
$session->set('form-data', Arr::except($request->request->all(), $this->formIgnore));
}