mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix(core): remove deprecated code
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
13412333e6
commit
618aaddff2
1 changed files with 2 additions and 6 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue