diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Log.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php index 4ac7d3f2f88..d2bf8e40e77 100644 --- a/lib/private/Log.php +++ b/lib/private/Log.php @@ -67,15 +67,11 @@ class Log implements ILogger, IDataLogger { public function __construct( private IWriter $logger, - private ?SystemConfig $config = null, + private SystemConfig $config, private ?Normalizer $normalizer = null, private ?IRegistry $crashReporters = null ) { - // FIXME: Add this for backwards compatibility, should be fixed at some point probably - if ($config === null) { - $this->config = \OCP\Server::get(SystemConfig::class); - } - + // FIXME: php8.1 allows "private Normalizer $normalizer = new Normalizer()," in initializer if ($normalizer === null) { $this->normalizer = new Normalizer(); } |