fix(psalm): Remove entries from the baseline

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
pull/63288/head
Carl Schwan 3 days ago
parent 80f412e8eb
commit a22a2e72d3
No known key found for this signature in database
GPG Key ID: 02325448204E452A
  1. 2
      apps/oauth2/lib/Controller/OauthApiController.php
  2. 1
      apps/oauth2/tests/Controller/OauthApiControllerTest.php
  3. 20
      build/psalm-baseline.xml

@ -70,7 +70,6 @@ final class OauthApiController extends Controller {
* Get a token
*
* @param 'authorization_code'|'refresh_token' $grant_type Token type that should be granted
* @psalm-param string $grant_type
* @param ?string $code Code of the flow
* @param ?string $refresh_token Refresh token
* @param ?string $client_id Client ID
@ -90,6 +89,7 @@ final class OauthApiController extends Controller {
): JSONResponse {
// We only handle two types
/** @psalm-suppress DocblockTypeContradiction We don't trust user input */
if ($grant_type !== 'authorization_code' && $grant_type !== 'refresh_token') {
$response = new JSONResponse([
'error' => 'invalid_grant',

@ -124,6 +124,7 @@ final class OauthApiControllerTest extends TestCase {
], Http::STATUS_BAD_REQUEST);
$expected->throttle(['invalid_grant' => 'foo']);
/** @psalm-suppress InvalidArgument Test that we don't trust user input */
$this->assertEquals($expected, $this->oauthApiController->getToken('foo', null, null, null, null));
}

@ -2226,26 +2226,6 @@
<code><![CDATA[setUserValue]]></code>
</DeprecatedMethod>
</file>
<file src="apps/oauth2/lib/Controller/LoginRedirectorController.php">
<DeprecatedMethod>
<code><![CDATA[generate]]></code>
</DeprecatedMethod>
</file>
<file src="apps/oauth2/lib/Controller/OauthApiController.php">
<DeprecatedMethod>
<code><![CDATA[generate]]></code>
<code><![CDATA[generate]]></code>
</DeprecatedMethod>
<NoInterfaceProperties>
<code><![CDATA[$this->request->server]]></code>
</NoInterfaceProperties>
</file>
<file src="apps/oauth2/lib/Service/ClientService.php">
<DeprecatedMethod>
<code><![CDATA[generate]]></code>
<code><![CDATA[generate]]></code>
</DeprecatedMethod>
</file>
<file src="apps/provisioning_api/lib/Controller/AUserDataOCSController.php">
<DeprecatedClass>
<code><![CDATA[\OC_Util::setupFS($user->getUID())]]></code>

Loading…
Cancel
Save