]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix psalm warning related to registerEventListener 30914/head
authorCarl Schwan <carl@carlschwan.eu>
Sat, 29 Jan 2022 10:47:53 +0000 (11:47 +0100)
committerCarl Schwan <carl@carlschwan.eu>
Sat, 29 Jan 2022 10:47:53 +0000 (11:47 +0100)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
build/psalm-baseline.xml
lib/public/AppFramework/Bootstrap/IRegistrationContext.php

index 3944384f59cfed4d6a9334a2927ae691127782a1..70401294b1dc30028cb65dca8cf49859ace910bb 100644 (file)
       <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>
       <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>
       <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>
     </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 occurrences="1">
+      <code>CalendarDeletionDefaultUpdaterListener::class</code>
     </InvalidArgument>
     <UndefinedInterfaceMethod occurrences="1">
       <code>getAppDataDir</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>
       <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>
       <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">
     <InvalidScalarArgument occurrences="1">
       <code>$inputPath</code>
       <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/Applicable.php">
     <InvalidArgument occurrences="1">
       <code>$mountId</code>
       <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/Expiration.php">
     <FalsableReturnStatement occurrences="1">
       <code>$maxAge</code>
   <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>
     </TypeDoesNotContainNull>
   </file>
   <file src="apps/settings/lib/AppInfo/Application.php">
-    <InvalidArgument occurrences="2">
-      <code>registerEventListener</code>
-      <code>registerEventListener</code>
+    <InvalidArgument occurrences="1">
+      <code>AppPasswordCreatedActivityListener::class</code>
     </InvalidArgument>
     <InvalidScalarArgument occurrences="1">
       <code>\OC_User::getUser()</code>
       <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>
       <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>
     </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>
index 589140d3eddd89265c17947d9420ab7734cc122c..36b87f997d866ce8cef3c80b4c3565cdcb41ef8a 100644 (file)
@@ -122,7 +122,7 @@ interface IRegistrationContext {
         * @param string $event preferably the fully-qualified class name of the Event sub class to listen for
         * @psalm-param string|class-string<T> $event preferably the fully-qualified class name of the Event sub class to listen for
         * @param string $listener fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
-        * @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $listener fully qualified class name that can be built by the DI container
+        * @psalm-param class-string<\OCP\EventDispatcher\IEventListener> $listener fully qualified class name that can be built by the DI container
         * @param int $priority The higher this value, the earlier an event
         *                      listener will be triggered in the chain (defaults to 0)
         *