]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update psalm baseline 36280/head
authornextcloud-command <nextcloud-command@users.noreply.github.com>
Sat, 21 Jan 2023 05:45:00 +0000 (05:45 +0000)
committerGitHub <noreply@github.com>
Sat, 21 Jan 2023 05:45:00 +0000 (05:45 +0000)
Signed-off-by: GitHub <noreply@github.com>
build/psalm-baseline-ocp.xml
build/psalm-baseline.xml

index c3bf00b8926e5ac3baf8c39a7ddad54db6bf19e6..e993e85e5a247611a9597dcf87f87191aebf38d3 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
+<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
   <file src="lib/private/legacy/OC_Template.php">
     <UndefinedClass occurrences="1">
       <code>OC</code>
       <code>$this-&gt;request-&gt;server</code>
     </NoInterfaceProperties>
   </file>
-  <file src="lib/public/Server.php">
-    <InvalidThrow occurrences="2">
-      <code>ContainerExceptionInterface</code>
-    </InvalidThrow>
-  </file>
   <file src="lib/public/AppFramework/App.php">
     <InternalMethod occurrences="1">
       <code>new RouteConfig($this-&gt;container, $router, $routes)</code>
       <code>\OC</code>
     </UndefinedClass>
   </file>
-  <file src="lib/public/AppFramework/Bootstrap/IBootContext.php">
-    <InvalidThrow occurrences="1">
-      <code>ContainerExceptionInterface</code>
-    </InvalidThrow>
-  </file>
   <file src="lib/public/AppFramework/Db/Entity.php">
     <InvalidNullableReturnType occurrences="1">
       <code>string</code>
       <code>\OC</code>
     </UndefinedClass>
   </file>
-  <file src="lib/public/IContainer.php">
-    <InvalidThrow occurrences="2">
-      <code>ContainerExceptionInterface</code>
-      <code>ContainerExceptionInterface</code>
-    </InvalidThrow>
-  </file>
   <file src="lib/public/Template.php">
     <UndefinedFunction occurrences="7">
       <code>\html_select_options($options, $selected, $params)</code>
index 5c8b4d7e67b20d0d73fc3f5261d513a2de246f51..ed7b19eaa7f90791d476c213b513c3b3d97d2e2d 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<files psalm-version="4.18.1@dda05fa913f4dc6eb3386f2f7ce5a45d37a71bcb">
+<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
   <file src="3rdparty/sabre/dav/lib/CalDAV/Calendar.php">
     <MoreSpecificImplementedParamType occurrences="1">
       <code>$calendarData</code>
@@ -37,9 +37,6 @@
     </LessSpecificImplementedReturnType>
   </file>
   <file src="apps/cloud_federation_api/lib/Controller/RequestHandlerController.php">
-    <InvalidScalarArgument occurrences="1">
-      <code>$e-&gt;getCode()</code>
-    </InvalidScalarArgument>
     <TypeDoesNotContainType occurrences="1">
       <code>!is_array($notification)</code>
     </TypeDoesNotContainType>
       <code>\Sabre\HTTP\toDate($value)</code>
     </UndefinedFunction>
   </file>
-  <file src="apps/dav/lib/Comments/EntityTypeCollection.php">
-    <TypeDoesNotContainType occurrences="1">
-      <code>!is_string($name)</code>
-    </TypeDoesNotContainType>
-  </file>
   <file src="apps/dav/lib/Comments/RootCollection.php">
     <InvalidArgument occurrences="1">
       <code>CommentsEntityEvent::EVENT_ENTITY</code>
     <InvalidReturnType occurrences="1">
       <code>\Sabre\DAV\INode[]</code>
     </InvalidReturnType>
-    <InvalidScalarArgument occurrences="1">
-      <code>$e-&gt;getCode()</code>
-    </InvalidScalarArgument>
     <NullArgument occurrences="3">
       <code>null</code>
       <code>null</code>
       <code>$userSession</code>
       <code>$userSession</code>
     </RedundantCondition>
-    <TypeDoesNotContainType occurrences="2">
+    <TypeDoesNotContainType occurrences="1">
       <code>get_class($res) === 'OpenSSLAsymmetricKey'</code>
     </TypeDoesNotContainType>
   </file>
       <code>null</code>
     </NullArgument>
   </file>
-  <file src="apps/files/lib/Command/TransferOwnership.php">
-    <InvalidReturnStatement occurrences="1">
-      <code>$e-&gt;getCode() !== 0 ? $e-&gt;getCode() : 1</code>
-    </InvalidReturnStatement>
-    <InvalidReturnType occurrences="1">
-      <code>int</code>
-    </InvalidReturnType>
-  </file>
   <file src="apps/files/lib/Controller/DirectEditingController.php">
     <InvalidArgument occurrences="1">
       <code>$templateId</code>
       <code>$this</code>
     </InvalidScope>
   </file>
-  <file src="apps/files_external/lib/Command/Verify.php">
-    <InvalidScalarArgument occurrences="2">
-      <code>$e-&gt;getCode()</code>
-      <code>$status</code>
-    </InvalidScalarArgument>
-  </file>
   <file src="apps/files_external/lib/Config/ConfigAdapter.php">
     <UndefinedClass occurrences="1">
       <code>new $objectClass($objectStore)</code>
       <code>['app' =&gt; Application::APP_ID, 'class' =&gt; get_class($subject)]</code>
     </InvalidArgument>
   </file>
-  <file src="apps/workflowengine/lib/Controller/AWorkflowController.php">
-    <InvalidScalarArgument occurrences="3">
-      <code>$e-&gt;getCode()</code>
-      <code>$e-&gt;getCode()</code>
-      <code>$e-&gt;getCode()</code>
-    </InvalidScalarArgument>
-  </file>
   <file src="apps/workflowengine/lib/Entity/File.php">
     <InvalidReturnType occurrences="1">
       <code>string</code>
     </RedundantCondition>
   </file>
   <file src="lib/base.php">
-    <InternalMethod occurrences="2">
-      <code>getAppsNeedingUpgrade</code>
-      <code>getIncompatibleApps</code>
-    </InternalMethod>
     <InvalidArgument occurrences="1">
       <code>$restrictions</code>
     </InvalidArgument>
     <InternalMethod occurrences="1">
       <code>setOCSVersion</code>
     </InternalMethod>
-    <InvalidScalarArgument occurrences="1">
-      <code>$code</code>
-    </InvalidScalarArgument>
   </file>
   <file src="lib/private/AppFramework/Middleware/Security/CORSMiddleware.php">
-    <InvalidScalarArgument occurrences="1">
-      <code>$exception-&gt;getCode()</code>
-    </InvalidScalarArgument>
     <NoInterfaceProperties occurrences="2">
       <code>$this-&gt;request-&gt;server</code>
       <code>$this-&gt;request-&gt;server</code>
     </NoInterfaceProperties>
   </file>
   <file src="lib/private/AppFramework/Middleware/Security/RateLimitingMiddleware.php">
-    <InvalidScalarArgument occurrences="6">
+    <InvalidScalarArgument occurrences="4">
       <code>$anonLimit</code>
       <code>$anonPeriod</code>
-      <code>$exception-&gt;getCode()</code>
-      <code>$exception-&gt;getCode()</code>
       <code>$userLimit</code>
       <code>$userPeriod</code>
     </InvalidScalarArgument>
   </file>
   <file src="lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php">
-    <InvalidScalarArgument occurrences="2">
-      <code>$exception-&gt;getCode()</code>
-      <code>$exception-&gt;getCode()</code>
-    </InvalidScalarArgument>
     <NoInterfaceProperties occurrences="1">
       <code>$this-&gt;request-&gt;server</code>
     </NoInterfaceProperties>
       <code>\OCA\Talk\Controller\PageController</code>
     </UndefinedClass>
   </file>
-  <file src="lib/private/AppFramework/OCS/V1Response.php">
-    <InvalidScalarArgument occurrences="1">
-      <code>$meta</code>
-    </InvalidScalarArgument>
-  </file>
-  <file src="lib/private/AppFramework/OCS/V2Response.php">
-    <InvalidScalarArgument occurrences="1">
-      <code>$meta</code>
-    </InvalidScalarArgument>
-  </file>
   <file src="lib/private/AppFramework/Routing/RouteConfig.php">
     <InvalidArrayOffset occurrences="1">
       <code>$action['url-postfix']</code>
     </RedundantCondition>
   </file>
   <file src="lib/private/Authentication/Token/PublicKeyToken.php">
-    <UndefinedMagicMethod occurrences="16">
-      <code>parent::getExpires()</code>
-      <code>parent::getLastCheck()</code>
-      <code>parent::getLoginName()</code>
-      <code>parent::getName()</code>
-      <code>parent::getPassword()</code>
-      <code>parent::getRemember()</code>
-      <code>parent::getScope()</code>
-      <code>parent::setExpires($expires)</code>
-      <code>parent::setLastCheck($time)</code>
-      <code>parent::setName($name)</code>
-      <code>parent::setPassword($password)</code>
-      <code>parent::setPasswordInvalid($invalid)</code>
-      <code>parent::setScope((string)$scope)</code>
-      <code>parent::setScope(json_encode($scope))</code>
-      <code>parent::setToken($token)</code>
-      <code>parent::setType(IToken::WIPE_TOKEN)</code>
-    </UndefinedMagicMethod>
+    <UndefinedMagicMethod occurrences="16"/>
   </file>
   <file src="lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php">
     <InvalidReturnStatement occurrences="1"/>
     <InvalidReturnType occurrences="1">
       <code>string</code>
     </InvalidReturnType>
-    <InvalidScalarArgument occurrences="1">
-      <code>$e-&gt;getCode()</code>
-    </InvalidScalarArgument>
     <ParamNameMismatch occurrences="2">
       <code>$seqName</code>
       <code>$statement</code>
     </LessSpecificImplementedReturnType>
   </file>
   <file src="lib/private/LargeFileHelper.php">
-    <InvalidOperand occurrences="2">
+    <InvalidOperand occurrences="1">
       <code>$matches[1]</code>
-      <code>$result</code>
     </InvalidOperand>
     <InvalidScalarArgument occurrences="1">
       <code>$data</code>
       <code>$id</code>
     </ParamNameMismatch>
   </file>
-  <file src="lib/private/Notification/Manager.php">
-    <InvalidCatch occurrences="3"/>
-  </file>
   <file src="lib/private/Preview/BackgroundCleanupJob.php">
     <InvalidReturnStatement occurrences="1">
       <code>[]</code>
     <InvalidArgument occurrences="1">
       <code>new GenericEvent($user)</code>
     </InvalidArgument>
-    <InvalidCatch occurrences="1"/>
     <UndefinedDocblockClass occurrences="1">
       <code>\OC\OCSClient</code>
     </UndefinedDocblockClass>
       <code>new RouteConfig($this-&gt;container, $router, $routes)</code>
     </InternalMethod>
   </file>
-  <file src="lib/public/AppFramework/Bootstrap/IBootContext.php">
-    <InvalidThrow occurrences="1">
-      <code>ContainerExceptionInterface</code>
-    </InvalidThrow>
-  </file>
   <file src="lib/public/AppFramework/Db/Entity.php">
     <InvalidNullableReturnType occurrences="1">
       <code>string</code>
       <code>array</code>
     </InvalidParamDefault>
   </file>
-  <file src="lib/public/IContainer.php">
-    <InvalidThrow occurrences="2">
-      <code>ContainerExceptionInterface</code>
-      <code>ContainerExceptionInterface</code>
-    </InvalidThrow>
-  </file>
-  <file src="lib/public/Server.php">
-    <InvalidThrow occurrences="2">
-      <code>ContainerExceptionInterface</code>
-      <code>NotFoundExceptionInterface</code>
-    </InvalidThrow>
-  </file>
-  <file src="remote.php">
-    <InvalidScalarArgument occurrences="1">
-      <code>$e-&gt;getCode()</code>
-    </InvalidScalarArgument>
-  </file>
 </files>