Feat(webhook_listeners): adapt webhook payload format #71166
static-code-analysis.yml
on: pull_request
static-code-analysis
3m 7s
static-code-analysis-security
15m 50s
static-code-analysis-ocp
1m 49s
static-code-analysis-ncu
40s
Annotations
10 errors
|
static-code-analysis
Process completed with exit code 2.
|
|
InvalidReturnStatement:
apps/webhook_listeners/lib/Service/TokenService.php#L123
apps/webhook_listeners/lib/Service/TokenService.php:123:10: InvalidReturnStatement: The inferred type 'array{owner?: array{baseUrl: string, token: string, userId: string}, trigger?: array{baseUrl: string, token: string, userId: string}, user_ids?: array<string, array{baseUrl: string, token: string, userId: mixed}>}' does not match the declared return type 'array{user_ids?: array<string, string>, user_roles?: array{owner?: array<string, string>, trigger?: array<string, string>}}' for OCA\WebhookListeners\Service\TokenService::getTokens due to additional array shape fields (trigger, owner) (see https://psalm.dev/128)
|
|
InvalidReturnType:
apps/webhook_listeners/lib/Service/TokenService.php#L68
apps/webhook_listeners/lib/Service/TokenService.php:68:13: InvalidReturnType: The declared return type 'array{user_ids?: array<string, string>, user_roles?: array{owner?: array<string, string>, trigger?: array<string, string>}}' for OCA\WebhookListeners\Service\TokenService::getTokens is incorrect, got 'array{owner?: array{baseUrl: string, token: string, userId: string}, trigger?: array{baseUrl: string, token: string, userId: string}, user_ids?: array<string, array{baseUrl: string, token: string, userId: mixed}>}' which is different due to additional array shape fields (trigger, owner) (see https://psalm.dev/011)
|
|
TaintedCallable:
lib/private/ServerContainer.php#L89
lib/private/ServerContainer.php:89:17: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
|
|
TaintedHtml:
lib/private/Mail/Mailer.php#L227
lib/private/Mail/Mailer.php:227:72: TaintedHtml: Detected tainted HTML (see https://psalm.dev/245)
|
|
TaintedHtml:
lib/private/Mail/Mailer.php#L207
lib/private/Mail/Mailer.php:207:83: TaintedHtml: Detected tainted HTML (see https://psalm.dev/245)
|
|
TaintedCallable:
lib/private/AppFramework/Utility/SimpleContainer.php#L129
lib/private/AppFramework/Utility/SimpleContainer.php:129:33: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
|
|
TaintedCallable:
apps/workflowengine/lib/Manager.php#L501
apps/workflowengine/lib/Manager.php:501:39: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
|
|
TaintedCallable:
apps/workflowengine/lib/Manager.php#L468
apps/workflowengine/lib/Manager.php:468:38: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
|
|
TaintedCallable:
apps/workflowengine/lib/Manager.php#L426
apps/workflowengine/lib/Manager.php:426:38: TaintedCallable: Detected tainted text (see https://psalm.dev/243)
|