Skip to content

Commit

Permalink
Merge pull request #8603 from nextcloud/chore/ignore-http-response-cl…
Browse files Browse the repository at this point in the history
…ass-template

chore: Ignore HTTP response class templates
  • Loading branch information
ChristophWurst committed Jul 6, 2023
2 parents 950e4c9 + 59e3f75 commit e5cefed
Show file tree
Hide file tree
Showing 5 changed files with 18 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
4 changes: 4 additions & 0 deletions lib/Http/ProxyDownloadResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
use DateTime;
use OCP\AppFramework\Http\DownloadResponse;

/**
* @psalm-suppress MissingTemplateParam
* @todo spec template with 28+
*/
class ProxyDownloadResponse extends DownloadResponse {
/** @var string */
private $content;
Expand Down

0 comments on commit e5cefed

Please sign in to comment.