aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-03-05 11:47:56 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-03-12 10:19:20 -0100
commit618aaddff26be1b2e2eb0beabe8d701672011684 (patch)
treead8c56f16a179a981ee61878192ed40078cbbd5a /lib
parent13412333e66790171451fc7abc6df54e6215365c (diff)
downloadnextcloud-server-618aaddff26be1b2e2eb0beabe8d701672011684.tar.gz
nextcloud-server-618aaddff26be1b2e2eb0beabe8d701672011684.zip
fix(core): remove deprecated code
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Log.php8
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();
}