summaryrefslogtreecommitdiffstats
path: root/build/psalm-baseline.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build/psalm-baseline.xml')
-rw-r--r--build/psalm-baseline.xml315
1 files changed, 228 insertions, 87 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 8235488b746..9d4ef09a30b 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
+<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
<file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$calendarData</code>
@@ -36,6 +36,11 @@
<code>array</code>
</LessSpecificImplementedReturnType>
</file>
+ <file src="apps/admin_audit/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/cloud_federation_api/lib/Controller/RequestHandlerController.php">
<InvalidScalarArgument occurrences="1">
<code>$e-&gt;getCode()</code>
@@ -44,6 +49,12 @@
<code>!is_array($notification)</code>
</TypeDoesNotContainType>
</file>
+ <file src="apps/comments/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="2">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/comments/lib/Search/Result.php">
<InvalidScalarArgument occurrences="1">
<code>(int) $comment-&gt;getId()</code>
@@ -54,6 +65,11 @@
<code>\Sabre\Uri\split($this-&gt;principalUri)</code>
</UndefinedFunction>
</file>
+ <file src="apps/contactsinteraction/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/dav/appinfo/v1/caldav.php">
<TooManyArguments occurrences="1">
<code>new \Sabre\DAV\Auth\Plugin($authBackend, 'ownCloud')</code>
@@ -112,6 +128,36 @@
</MissingFile>
</file>
<file src="apps/dav/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="28">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>getAppDataDir</code>
</UndefinedInterfaceMethod>
@@ -314,6 +360,11 @@
<code>@var VEvent $vevent</code>
</PossiblyInvalidDocblockTag>
</file>
+ <file src="apps/dav/lib/CalDAV/Reminder/NotificationProviderManager.php">
+ <UndefinedConstant occurrences="1">
+ <code>$provider::NOTIFICATION_TYPE</code>
+ </UndefinedConstant>
+ </file>
<file src="apps/dav/lib/CalDAV/Reminder/Notifier.php">
<FalsableReturnStatement occurrences="4">
<code>$this-&gt;l10n-&gt;l('date', $dt, ['width' =&gt; 'medium'])</code>
@@ -1005,6 +1056,9 @@
<InvalidReturnType occurrences="1">
<code>array</code>
</InvalidReturnType>
+ <RedundantFunctionCall occurrences="1">
+ <code>array_values</code>
+ </RedundantFunctionCall>
</file>
<file src="apps/dav/lib/Upload/UploadHome.php">
<UndefinedFunction occurrences="1">
@@ -1022,7 +1076,8 @@
</InvalidOperand>
</file>
<file src="apps/encryption/lib/Crypto/Crypt.php">
- <RedundantCondition occurrences="1">
+ <RedundantCondition occurrences="2">
+ <code>$userSession</code>
<code>$userSession</code>
</RedundantCondition>
<TypeDoesNotContainType occurrences="2">
@@ -1058,9 +1113,6 @@
<InvalidThrow occurrences="1">
<code>throw $exception;</code>
</InvalidThrow>
- <RedundantCondition occurrences="1">
- <code>$userSession</code>
- </RedundantCondition>
</file>
<file src="apps/encryption/lib/Recovery.php">
<InvalidScalarArgument occurrences="3">
@@ -1068,9 +1120,6 @@
<code>0</code>
<code>1</code>
</InvalidScalarArgument>
- <RedundantCondition occurrences="1">
- <code>$userSession</code>
- </RedundantCondition>
</file>
<file src="apps/encryption/lib/Session.php">
<TooManyArguments occurrences="1">
@@ -1078,10 +1127,16 @@
</TooManyArguments>
</file>
<file src="apps/encryption/lib/Util.php">
- <RedundantCondition occurrences="1">
+ <RedundantCondition occurrences="2">
+ <code>$userSession</code>
<code>$userSession</code>
</RedundantCondition>
</file>
+ <file src="apps/federatedfilesharing/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/federatedfilesharing/lib/Controller/RequestHandlerController.php">
<InvalidScalarArgument occurrences="7">
<code>$id</code>
@@ -1136,6 +1191,11 @@
<code>null</code>
</NullableReturnStatement>
</file>
+ <file src="apps/federation/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/federation/lib/TrustedServers.php">
<InvalidArgument occurrences="1">
<code>'OCP\Federation\TrustedServerEvent::remove'</code>
@@ -1152,11 +1212,6 @@
<code>$files_list</code>
</InvalidArgument>
</file>
- <file src="apps/files/ajax/list.php">
- <TypeDoesNotContainType occurrences="1">
- <code>!$dirInfo-&gt;getType() === 'dir'</code>
- </TypeDoesNotContainType>
- </file>
<file src="apps/files/appinfo/routes.php">
<InvalidScope occurrences="2">
<code>$this</code>
@@ -1185,6 +1240,12 @@
<code>10 * 1024 * 1024</code>
</InvalidScalarArgument>
</file>
+ <file src="apps/files/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="2">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/files/lib/Command/Scan.php">
<NullArgument occurrences="1">
<code>null</code>
@@ -1274,6 +1335,12 @@
<code>$this</code>
</InvalidScope>
</file>
+ <file src="apps/files_external/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="2">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/files_external/lib/Command/Delete.php">
<NullArgument occurrences="1">
<code>null</code>
@@ -1323,6 +1390,12 @@
<code>getUniqueStorages</code>
</UndefinedMethod>
</file>
+ <file src="apps/files_external/lib/Lib/Auth/Password/LoginCredentials.php">
+ <InvalidArgument occurrences="2">
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/files_external/lib/Lib/Backend/Backend.php">
<InvalidReturnType occurrences="1">
<code>self</code>
@@ -1511,6 +1584,16 @@
<code>$_</code>
</UndefinedVariable>
</file>
+ <file src="apps/files_sharing/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="6">
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/files_sharing/lib/Cache.php">
<FalsableReturnStatement occurrences="1">
<code>false</code>
@@ -1530,11 +1613,17 @@
</UndefinedInterfaceMethod>
</file>
<file src="apps/files_sharing/lib/Controller/ShareAPIController.php">
+ <InvalidOperand occurrences="1">
+ <code>$permissions</code>
+ </InvalidOperand>
<InvalidScalarArgument occurrences="3">
<code>$code</code>
<code>$code</code>
<code>Constants::PERMISSION_ALL</code>
</InvalidScalarArgument>
+ <RedundantCondition occurrences="1">
+ <code>$permissions &amp; Constants::PERMISSION_READ</code>
+ </RedundantCondition>
<UndefinedClass occurrences="2">
<code>\OCA\Circles\Api\v1\Circles</code>
<code>\OCA\Circles\Api\v1\Circles</code>
@@ -1580,9 +1669,6 @@
</InvalidDocblock>
</file>
<file src="apps/files_sharing/lib/External/Scanner.php">
- <InvalidScalarArgument occurrences="1">
- <code>$recursive</code>
- </InvalidScalarArgument>
<MoreSpecificImplementedParamType occurrences="1">
<code>$cacheData</code>
</MoreSpecificImplementedParamType>
@@ -1605,6 +1691,11 @@
<code>$exception-&gt;getMessage()</code>
</InvalidArgument>
</file>
+ <file src="apps/files_sharing/lib/MountProvider.php">
+ <RedundantFunctionCall occurrences="1">
+ <code>array_values</code>
+ </RedundantFunctionCall>
+ </file>
<file src="apps/files_sharing/lib/ShareBackend/File.php">
<InvalidScalarArgument occurrences="2">
<code>$itemSource</code>
@@ -1717,12 +1808,13 @@
</TooManyArguments>
</file>
<file src="apps/files_trashbin/lib/Trash/LegacyTrashBackend.php">
- <ParadoxicalCondition occurrences="1">
- <code>null</code>
- </ParadoxicalCondition>
- <RedundantCondition occurrences="1">
+ <RedundantCondition occurrences="2">
+ <code>$trashFiles</code>
<code>$trashFiles</code>
</RedundantCondition>
+ <TypeDoesNotContainType occurrences="1">
+ <code>null</code>
+ </TypeDoesNotContainType>
<UndefinedInterfaceMethod occurrences="2">
<code>$file</code>
<code>getById</code>
@@ -1746,6 +1838,12 @@
<code>$this</code>
</InvalidScope>
</file>
+ <file src="apps/files_versions/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="2">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/files_versions/lib/Sabre/RestoreFolder.php">
<InvalidNullableReturnType occurrences="1">
<code>getChild</code>
@@ -1789,6 +1887,11 @@
<file src="apps/oauth2/lib/Db/ClientMapper.php">
<InvalidCatch occurrences="2"/>
</file>
+ <file src="apps/provisioning_api/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/provisioning_api/lib/Controller/UsersController.php">
<InvalidScalarArgument occurrences="1">
<code>$quota</code>
@@ -1799,6 +1902,11 @@
</TypeDoesNotContainNull>
</file>
<file src="apps/settings/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="3">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
<InvalidScalarArgument occurrences="1">
<code>\OC_User::getUser()</code>
</InvalidScalarArgument>
@@ -1840,6 +1948,11 @@
<code>isReady</code>
</UndefinedInterfaceMethod>
</file>
+ <file src="apps/settings/lib/Settings/Admin/Server.php">
+ <InvalidArgument occurrences="1">
+ <code>false</code>
+ </InvalidArgument>
+ </file>
<file src="apps/settings/lib/Settings/Admin/Sharing.php">
<InvalidScalarArgument occurrences="1">
<code>Constants::PERMISSION_ALL</code>
@@ -1876,6 +1989,11 @@
<code>$type</code>
</InvalidScalarArgument>
</file>
+ <file src="apps/theming/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/theming/lib/Controller/IconController.php">
<InvalidReturnStatement occurrences="1">
<code>$response</code>
@@ -1916,6 +2034,14 @@
<code>$folder !== null</code>
</RedundantCondition>
</file>
+ <file src="apps/twofactor_backupcodes/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="4">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/twofactor_backupcodes/lib/BackgroundJob/RememberBackupCodesJob.php">
<InvalidArgument occurrences="1">
<code>bool</code>
@@ -1933,6 +2059,9 @@
</InvalidScalarArgument>
</file>
<file src="apps/updatenotification/lib/Notification/BackgroundJob.php">
+ <InvalidArgument occurrences="1">
+ <code>false</code>
+ </InvalidArgument>
<InvalidPropertyAssignmentValue occurrences="1">
<code>$this-&gt;users</code>
</InvalidPropertyAssignmentValue>
@@ -1977,9 +2106,6 @@
<InvalidArgument occurrences="1">
<code>$record</code>
</InvalidArgument>
- <InvalidArrayOffset occurrences="1">
- <code>[$attr =&gt; $result['values']]</code>
- </InvalidArrayOffset>
<InvalidReturnStatement occurrences="2">
<code>$uuid</code>
<code>$values</code>
@@ -2000,8 +2126,7 @@
<code>$limit === 0</code>
<code>is_array($result)</code>
</RedundantCondition>
- <TypeDoesNotContainNull occurrences="2">
- <code>!$attribute === null</code>
+ <TypeDoesNotContainNull occurrences="1">
<code>is_null($findings)</code>
</TypeDoesNotContainNull>
<TypeDoesNotContainType occurrences="2">
@@ -2137,7 +2262,6 @@
</InvalidPropertyAssignmentValue>
<InvalidReturnType occurrences="1">
<code>null</code>
- <code>null</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="3">
<code>$this-&gt;getHomePath($ldapEntry[$attr][0])</code>
@@ -2196,10 +2320,20 @@
</TypeDoesNotContainType>
</file>
<file src="apps/user_status/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="3">
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ <code>registerEventListener</code>
+ </InvalidArgument>
<UndefinedInterfaceMethod occurrences="1">
<code>registerProvider</code>
</UndefinedInterfaceMethod>
</file>
+ <file src="apps/workflowengine/lib/AppInfo/Application.php">
+ <InvalidArgument occurrences="1">
+ <code>registerEventListener</code>
+ </InvalidArgument>
+ </file>
<file src="apps/workflowengine/lib/Check/AbstractStringCheck.php">
<NullArgument occurrences="1">
<code>null</code>
@@ -2294,6 +2428,19 @@
<code>isUserScopeEnabled</code>
</UndefinedInterfaceMethod>
</file>
+ <file src="core/Application.php">
+ <InvalidArgument occurrences="9">
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
+ </InvalidArgument>
+ </file>
<file src="core/BackgroundJobs/BackgroundCleanupUpdaterBackupsJob.php">
<ParamNameMismatch occurrences="1">
<code>$arguments</code>
@@ -2309,17 +2456,6 @@
<code>$arguments</code>
</ParamNameMismatch>
</file>
- <file src="core/Command/App/GetPath.php">
- <ImplementedReturnTypeMismatch occurrences="1">
- <code>null|int</code>
- </ImplementedReturnTypeMismatch>
- <InvalidReturnType occurrences="1">
- <code>null|int</code>
- </InvalidReturnType>
- <MismatchingDocblockReturnType occurrences="1">
- <code>null|int</code>
- </MismatchingDocblockReturnType>
- </file>
<file src="core/Command/App/Install.php">
<TypeDoesNotContainType occurrences="1">
<code>$result === false</code>
@@ -2330,17 +2466,6 @@
<code>array</code>
</LessSpecificImplementedReturnType>
</file>
- <file src="core/Command/Config/App/GetConfig.php">
- <ImplementedReturnTypeMismatch occurrences="1">
- <code>null|int</code>
- </ImplementedReturnTypeMismatch>
- <InvalidReturnType occurrences="1">
- <code>null|int</code>
- </InvalidReturnType>
- <MismatchingDocblockReturnType occurrences="1">
- <code>null|int</code>
- </MismatchingDocblockReturnType>
- </file>
<file src="core/Command/Config/Import.php">
<InvalidScalarArgument occurrences="2">
<code>0</code>
@@ -2355,17 +2480,6 @@
<code>getFilteredValues</code>
</TooManyArguments>
</file>
- <file src="core/Command/Config/System/GetConfig.php">
- <ImplementedReturnTypeMismatch occurrences="1">
- <code>null|int</code>
- </ImplementedReturnTypeMismatch>
- <InvalidReturnType occurrences="1">
- <code>null|int</code>
- </InvalidReturnType>
- <MismatchingDocblockReturnType occurrences="1">
- <code>null|int</code>
- </MismatchingDocblockReturnType>
- </file>
<file src="core/Command/Db/AddMissingColumns.php">
<InvalidArgument occurrences="1">
<code>IDBConnection::ADD_MISSING_COLUMNS_EVENT</code>
@@ -2521,13 +2635,19 @@
<code>$this</code>
</InvalidScope>
</file>
+ <file src="core/templates/layout.guest.php">
+ <InvalidArgument occurrences="1">
+ <code>false</code>
+ </InvalidArgument>
+ </file>
<file src="core/templates/layout.public.php">
<UndefinedInterfaceMethod occurrences="1">
<code>getIcon</code>
</UndefinedInterfaceMethod>
</file>
<file src="lib/autoloader.php">
- <RedundantCondition occurrences="1">
+ <RedundantCondition occurrences="2">
+ <code>$this-&gt;memoryCache</code>
<code>$this-&gt;memoryCache</code>
</RedundantCondition>
</file>
@@ -2536,8 +2656,10 @@
<code>getAppsNeedingUpgrade</code>
<code>getIncompatibleApps</code>
</InternalMethod>
- <InvalidArgument occurrences="1">
+ <InvalidArgument occurrences="3">
<code>$restrictions</code>
+ <code>addServiceListener</code>
+ <code>addServiceListener</code>
</InvalidArgument>
<RedundantCondition occurrences="1">
<code>((array)$request-&gt;getParam('appid')) !== ''</code>
@@ -2943,14 +3065,6 @@
<code>bool|mixed</code>
</LessSpecificImplementedReturnType>
</file>
- <file src="lib/private/Collaboration/Resources/Manager.php">
- <RedundantCondition occurrences="1">
- <code>$user instanceof IUser</code>
- </RedundantCondition>
- <TypeDoesNotContainType occurrences="1">
- <code>''</code>
- </TypeDoesNotContainType>
- </file>
<file src="lib/private/Command/CallableJob.php">
<ParamNameMismatch occurrences="1">
<code>$serializedCallable</code>
@@ -3369,7 +3483,8 @@
<NullableReturnStatement occurrences="1">
<code>null</code>
</NullableReturnStatement>
- <RedundantCondition occurrences="1">
+ <RedundantCondition occurrences="2">
+ <code>$userObject</code>
<code>$userObject</code>
</RedundantCondition>
<TooManyArguments occurrences="1">
@@ -3555,6 +3670,9 @@
</MoreSpecificImplementedParamType>
</file>
<file src="lib/private/Files/ObjectStore/ObjectStoreStorage.php">
+ <InvalidScalarArgument occurrences="1">
+ <code>$source</code>
+ </InvalidScalarArgument>
<ParamNameMismatch occurrences="2">
<code>$source</code>
<code>$target</code>
@@ -3758,6 +3876,11 @@
</InvalidReturnType>
</file>
<file src="lib/private/Files/Storage/Wrapper/Encoding.php">
+ <InvalidScalarArgument occurrences="3">
+ <code>\Normalizer::FORM_C</code>
+ <code>\Normalizer::FORM_C</code>
+ <code>\Normalizer::FORM_D</code>
+ </InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="13">
<code>$this-&gt;namesCache</code>
<code>$this-&gt;namesCache</code>
@@ -3848,6 +3971,11 @@
<code>stream_flush</code>
</InvalidReturnType>
</file>
+ <file src="lib/private/Files/Template/TemplateManager.php">
+ <RedundantCondition occurrences="1">
+ <code>!$isDefaultTemplates</code>
+ </RedundantCondition>
+ </file>
<file src="lib/private/Files/Type/Detection.php">
<ParamNameMismatch occurrences="1">
<code>$mimetype</code>
@@ -3897,9 +4025,11 @@
<code>null</code>
<code>null</code>
</NullableReturnStatement>
- <RedundantCondition occurrences="3">
- <code>$data</code>
+ <RedundantCondition occurrences="5">
+ <code>$result</code>
<code>$result &amp;&amp; in_array('delete', $hooks) and $result</code>
+ <code>Constants::PERMISSION_READ</code>
+ <code>Constants::PERMISSION_READ</code>
<code>is_resource($source)</code>
</RedundantCondition>
<UndefinedDocblockClass occurrences="2">
@@ -3938,7 +4068,10 @@
<MoreSpecificImplementedParamType occurrences="1">
<code>$user</code>
</MoreSpecificImplementedParamType>
- <RedundantCondition occurrences="3">
+ <RedundantCondition occurrences="6">
+ <code>$this-&gt;emitter</code>
+ <code>$this-&gt;emitter</code>
+ <code>$this-&gt;emitter</code>
<code>$this-&gt;emitter</code>
<code>$this-&gt;emitter</code>
<code>$this-&gt;emitter</code>
@@ -3981,6 +4114,10 @@
<FalsableReturnStatement occurrences="1">
<code>false</code>
</FalsableReturnStatement>
+ <InvalidArgument occurrences="2">
+ <code>false</code>
+ <code>false</code>
+ </InvalidArgument>
<InvalidArrayOffset occurrences="2">
<code>$app['path']</code>
<code>$app['path']</code>
@@ -3988,9 +4125,6 @@
<NullArgument occurrences="1">
<code>null</code>
</NullArgument>
- <RedundantCondition occurrences="1">
- <code>$archive</code>
- </RedundantCondition>
</file>
<file src="lib/private/IntegrityCheck/Checker.php">
<InvalidArrayAccess occurrences="3">
@@ -4062,7 +4196,8 @@
</InvalidPropertyAssignmentValue>
</file>
<file src="lib/private/Log.php">
- <RedundantCondition occurrences="1">
+ <RedundantCondition occurrences="2">
+ <code>$request</code>
<code>$request</code>
</RedundantCondition>
</file>
@@ -4136,10 +4271,6 @@
</file>
<file src="lib/private/Notification/Manager.php">
<InvalidCatch occurrences="3"/>
- <TypeDoesNotContainType occurrences="2">
- <code>!($notification instanceof INotification)</code>
- <code>!($notification instanceof INotification)</code>
- </TypeDoesNotContainType>
</file>
<file src="lib/private/Preview/BackgroundCleanupJob.php">
<InvalidReturnStatement occurrences="1">
@@ -4239,6 +4370,11 @@
<code>dispatch</code>
</TooManyArguments>
</file>
+ <file src="lib/private/Repair/Owncloud/CleanPreviews.php">
+ <InvalidArgument occurrences="1">
+ <code>false</code>
+ </InvalidArgument>
+ </file>
<file src="lib/private/Repair/Owncloud/CleanPreviewsBackgroundJob.php">
<ParamNameMismatch occurrences="1">
<code>$arguments</code>
@@ -4248,6 +4384,9 @@
<ParamNameMismatch occurrences="1">
<code>$arguments</code>
</ParamNameMismatch>
+ <TypeDoesNotContainType occurrences="1">
+ <code>$counter % 100 === 0</code>
+ </TypeDoesNotContainType>
</file>
<file src="lib/private/Repair/RemoveLinkShares.php">
<ImplicitToStringCast occurrences="2">
@@ -4587,6 +4726,9 @@
</NullArgument>
</file>
<file src="lib/private/Template/JSResourceLocator.php">
+ <InvalidArgument occurrences="1">
+ <code>false</code>
+ </InvalidArgument>
<InvalidOperand occurrences="6">
<code>$this-&gt;appendIfExist($this-&gt;serverroot, $script.'.js')</code>
<code>$this-&gt;appendIfExist($this-&gt;serverroot, $theme_dir.$script.'.js')</code>
@@ -4654,6 +4796,9 @@
<ImplementedReturnTypeMismatch occurrences="1">
<code>array|int</code>
</ImplementedReturnTypeMismatch>
+ <InvalidArgument occurrences="1">
+ <code>$callback</code>
+ </InvalidArgument>
<InvalidNullableReturnType occurrences="1">
<code>bool|IUser</code>
</InvalidNullableReturnType>
@@ -4854,9 +4999,6 @@
<code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper($prevLogging)</code>
<code>\OC\Files\Filesystem::logWarningWhenAddingStorageWrapper(false)</code>
</InternalMethod>
- <InvalidLiteralArgument occurrences="1">
- <code>\OCP\Constants::FILENAME_INVALID_CHARS</code>
- </InvalidLiteralArgument>
<InvalidReturnStatement occurrences="1">
<code>OC_Helper::computerFileSize($userQuota)</code>
</InvalidReturnStatement>
@@ -4867,8 +5009,7 @@
<code>$user</code>
<code>OC_User::getUser()</code>
</InvalidScalarArgument>
- <RedundantCondition occurrences="2">
- <code>'off'</code>
+ <RedundantCondition occurrences="1">
<code>is_string($expected)</code>
</RedundantCondition>
<TypeDoesNotContainType occurrences="3">