dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Type hint against LinkTarget in WatchedItemStore"
[lhc/web/wiklou.git]
/
includes
/
libs
/
filebackend
/
FileBackend.php
diff --git
a/includes/libs/filebackend/FileBackend.php
b/includes/libs/filebackend/FileBackend.php
index
53a0ca0
..
4ad48c7
100644
(file)
--- a/
includes/libs/filebackend/FileBackend.php
+++ b/
includes/libs/filebackend/FileBackend.php
@@
-30,6
+30,7
@@
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Wikimedia\ScopedCallback;
use Psr\Log\LoggerAwareInterface;
use Psr\Log\LoggerInterface;
use Wikimedia\ScopedCallback;
+use Psr\Log\NullLogger;
/**
* @brief Base class for all file backend classes (including multi-write backends).
/**
* @brief Base class for all file backend classes (including multi-write backends).
@@
-190,7
+191,7
@@
abstract class FileBackend implements LoggerAwareInterface {
if ( !is_callable( $this->profiler ) ) {
$this->profiler = null;
}
if ( !is_callable( $this->profiler ) ) {
$this->profiler = null;
}
- $this->logger = $config['logger'] ?? new
\Psr\Log\
NullLogger();
+ $this->logger = $config['logger'] ?? new NullLogger();
$this->statusWrapper = $config['statusWrapper'] ?? null;
$this->tmpDirectory = $config['tmpDirectory'] ?? null;
}
$this->statusWrapper = $config['statusWrapper'] ?? null;
$this->tmpDirectory = $config['tmpDirectory'] ?? null;
}