PHP 7.4: Fixed xdebug code coverage

This commit is contained in:
Igor Scheller 2019-11-29 16:07:51 +01:00
parent d203071de0
commit a1e1d91a64
2 changed files with 7 additions and 8 deletions

View File

@ -40,10 +40,11 @@ class ConfigServiceProvider extends ServiceProvider
continue;
}
$config->set(array_replace_recursive(
$configuration = array_replace_recursive(
$config->get(null),
require $file
));
);
$config->set($configuration);
}
if (empty($config->get(null))) {

View File

@ -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));
}