Skip to content

Commit

Permalink
chore: Ignore HTTP response class templates
Browse files Browse the repository at this point in the history
They are new in 28 and missing for 27 and older.

Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Jul 5, 2023
1 parent 55a92da commit 9eacccb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Http/AttachmentDownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

use OCP\AppFramework\Http\DownloadResponse;

/**
* @psalm-suppress MissingTemplateParam
* @todo spec template with 28+
*/
class AttachmentDownloadResponse extends DownloadResponse {
/** @var string */
private $content;
Expand Down
4 changes: 4 additions & 0 deletions lib/Http/AvatarDownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

use OCP\AppFramework\Http\DownloadResponse;

/**
* @psalm-suppress MissingTemplateParam
* @todo spec template with 28+
*/
class AvatarDownloadResponse extends DownloadResponse {
/** @var string */
private $content;
Expand Down
4 changes: 4 additions & 0 deletions lib/Http/HtmlResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

use OCP\AppFramework\Http\Response;

/**
* @psalm-suppress MissingTemplateParam
* @todo spec template with 28+
*/
class HtmlResponse extends Response {
/** @var string */
private $content;
Expand Down
2 changes: 2 additions & 0 deletions lib/Http/JsonResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

/**
* @see https://github.com/omniti-labs/jsend
* @psalm-suppress MissingTemplateParam
* @todo spec template with 28+
*/
class JsonResponse extends Base {
public function __construct($data = [],
Expand Down
5 changes: 5 additions & 0 deletions lib/Http/ProxyDownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
use DateTime;
use OCP\AppFramework\Http\DownloadResponse;

/**
* @see https://github.com/omniti-labs/jsend
* @psalm-suppress MissingTemplateParam
* @todo spec template with 28+
*/
class ProxyDownloadResponse extends DownloadResponse {
/** @var string */
private $content;
Expand Down

0 comments on commit 9eacccb

Please sign in to comment.