mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-11 17:51:02 +00:00
Modernize to PHP 7.4
This commit is contained in:
parent
ce8ed589d5
commit
4168727f36
21 changed files with 31 additions and 75 deletions
|
@ -107,9 +107,7 @@ class ImportCommand extends Command
|
|||
|
||||
// Turning off doctrine default logs queries for saving memory
|
||||
$middlewares = $this->entityManager->getConnection()->getConfiguration()->getMiddlewares();
|
||||
$middlewaresWithoutLogging = array_filter($middlewares, function (Middleware $middleware) {
|
||||
return !$middleware instanceof LoggingMiddleware;
|
||||
});
|
||||
$middlewaresWithoutLogging = array_filter($middlewares, fn (Middleware $middleware) => !$middleware instanceof LoggingMiddleware);
|
||||
$this->entityManager->getConnection()->getConfiguration()->setMiddlewares($middlewaresWithoutLogging);
|
||||
|
||||
if ($input->getOption('useUserId')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue