fix(core): remove deprecated code

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2024-03-05 11:47:56 -01:00
parent 13412333e6
commit 618aaddff2

View file

@ -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();
}