PHP 7.4: Fixed xdebug code coverage

main
Igor Scheller 5 years ago
parent d203071de0
commit a1e1d91a64

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

@ -67,13 +67,11 @@ class ErrorHandler implements MiddlewareInterface
if ($request instanceof Request) { if ($request instanceof Request) {
$session = $request->getSession(); $session = $request->getSession();
$session->set( $errors = array_merge_recursive(
'errors',
array_merge_recursive(
$session->get('errors', []), $session->get('errors', []),
['validation' => $e->getValidator()->getErrors()] ['validation' => $e->getValidator()->getErrors()]
)
); );
$session->set('errors', $errors);
$session->set('form-data', Arr::except($request->request->all(), $this->formIgnore)); $session->set('form-data', Arr::except($request->request->all(), $this->formIgnore));
} }

Loading…
Cancel
Save