Skip to content

Commit b502b8e

Browse files
committed
remove deprecated code
Signed-off-by: Maxence Lange <[email protected]>
1 parent 8a17561 commit b502b8e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/private/Log.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,11 @@ class Log implements ILogger, IDataLogger {
6767

6868
public function __construct(
6969
private IWriter $logger,
70-
private ?SystemConfig $config = null,
70+
private SystemConfig $config,
7171
private ?Normalizer $normalizer = null,
7272
private ?IRegistry $crashReporters = null
7373
) {
74-
// FIXME: Add this for backwards compatibility, should be fixed at some point probably
75-
if ($config === null) {
76-
$this->config = \OCP\Server::get(SystemConfig::class);
77-
}
78-
74+
// FIXME: php8.1 allows "private Normalizer $normalizer = new Normalizer()," in initializer
7975
if ($normalizer === null) {
8076
$this->normalizer = new Normalizer();
8177
}

0 commit comments

Comments
 (0)