mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Silence false-positive from psalm in lib/public/Log/functions.php
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
a529aa79d8
commit
7996a12aef
2 changed files with 1 additions and 6 deletions
|
|
@ -1789,12 +1789,6 @@
|
|||
<code>getAppsNeedingUpgrade</code>
|
||||
<code>getIncompatibleApps</code>
|
||||
</InternalMethod>
|
||||
<InvalidArgument occurrences="1">
|
||||
<code>$restrictions</code>
|
||||
</InvalidArgument>
|
||||
<RedundantCondition occurrences="1">
|
||||
<code>((array)$request->getParam('appid')) !== ''</code>
|
||||
</RedundantCondition>
|
||||
</file>
|
||||
<file src="lib/private/Accounts/AccountManager.php">
|
||||
<InvalidArgument occurrences="1">
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ use function class_exists;
|
|||
* @since 24.0.0
|
||||
*/
|
||||
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
|
||||
// no logging available. In that case we return a noop implementation
|
||||
|
|
|
|||
Loading…
Reference in a new issue