Skip to content

Commit

Permalink
chore: update template annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Jan 13, 2025
1 parent 7096bdf commit fe817bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PhpInfoResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use OCP\AppFramework\Http\Response;

/**
* @template-extends Response<int, array<string, mixed>>
* @template-extends Response<Http::STATUS_*, array<string, mixed>>
*/
class PhpInfoResponse extends Response {

Check failure on line 19 in lib/PhpInfoResponse.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

InvalidTemplateParam

lib/PhpInfoResponse.php:19:7: InvalidTemplateParam: Extended template param S expects type OCP\AppFramework\Http::STATUS_*, type OCA\ServerInfo\Http::STATUS_* given (see https://psalm.dev/183)

Check failure on line 19 in lib/PhpInfoResponse.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis

UndefinedDocblockClass

lib/PhpInfoResponse.php:19:7: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\ServerInfo\Http does not exist (see https://psalm.dev/200)
public function __construct() {
Expand Down

0 comments on commit fe817bc

Please sign in to comment.