Skip to content

Commit

Permalink
fixup! feat(ocs): send a message via api
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jul 18, 2024
1 parent 163ec60 commit fe95016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/MessageApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct(
* @param array $cc An optional array of 'CC' recipients in the format ['label' => 'Name', 'email' => 'Email Address'] or ['email' => 'Email Address']
* @param array $bcc An optional array of 'BCC' recipients in the format ['label' => 'Name', 'email' => 'Email Address'] or ['email' => 'Email Address']
* @param ?string $references An optional string of an RFC2392 <message-id> to set the "Reply-To" and "References" header on sending
* @return DataResponse<Http::STATUS_OK|Http::STATUS_ACCEPTED|Http::STATUS_BAD_REQUEST|Http::STATUS_FORBIDDEN|Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string>
* @return DataResponse<Http::STATUS_OK|Http::STATUS_ACCEPTED|Http::STATUS_BAD_REQUEST|Http::STATUS_FORBIDDEN|Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, string, int>

Check failure on line 79 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidTemplateParam

lib/Controller/MessageApiController.php:79:13: InvalidTemplateParam: Extended template param H of OCP\AppFramework\Http\DataResponse<200|202|400|403|404|500, string, int> expects type array<string, mixed>, type int given (see https://psalm.dev/183)

Check failure on line 79 in lib/Controller/MessageApiController.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidReturnType

lib/Controller/MessageApiController.php:79:13: InvalidReturnType: The declared return type 'OCP\AppFramework\Http\DataResponse<200|202|400|403|404|500, string, int>' for OCA\Mail\Controller\MessageApiController::send is incorrect, got 'OCP\AppFramework\Http\DataResponse<200|202|400|403|404|500, string, array<never, never>>' (see https://psalm.dev/011)
*
* 200: The email was sent
* 202: The email was sent but could not be copied to the 'Sent' mailbox
Expand Down

0 comments on commit fe95016

Please sign in to comment.