aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Log/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Log/functions.php')
-rw-r--r--lib/public/Log/functions.php24
1 files changed, 4 insertions, 20 deletions
diff --git a/lib/public/Log/functions.php b/lib/public/Log/functions.php
index ac043b4d958..75e07deab34 100644
--- a/lib/public/Log/functions.php
+++ b/lib/public/Log/functions.php
@@ -2,25 +2,9 @@
declare(strict_types=1);
-/*
- * @copyright 2022 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @author 2022 Christoph Wurst <christoph@winzerhof-wurst.at>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
+/**
+ * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCP\Log;
@@ -48,7 +32,7 @@ use function class_exists;
* @return LoggerInterface
* @since 24.0.0
*/
-function logger(string $appId = null): LoggerInterface {
+function logger(?string $appId = null): LoggerInterface {
/** @psalm-suppress TypeDoesNotContainNull false-positive, it may contain null if we are logging from initialization */
if (!class_exists(OC::class) || OC::$server === null) {
// If someone calls this log before Nextcloud is initialized, there is