Skip to content

expose default-limit to capabilities #273

expose default-limit to capabilities

expose default-limit to capabilities #273

Triggered via pull request November 13, 2024 08:48
Status Failure
Total duration 38s
Artifacts

psalm.yml

on: pull_request
static-psalm-analysis
25s
static-psalm-analysis
Fit to window
Zoom out
Zoom in

Annotations

3 errors
InvalidReturnType: lib/Capabilities.php#L24
lib/Capabilities.php:24:13: InvalidReturnType: The declared return type 'array{downloadlimit: array{enabled: true}}' for OCA\Files_DownloadLimit\Capabilities::getCapabilities is incorrect, got 'array{downloadlimit: array{'default-limit': int, enabled: true}}' which is different due to additional array shape fields (default-limit) (see https://psalm.dev/011)
InvalidReturnStatement: lib/Capabilities.php#L27
lib/Capabilities.php:27:10: InvalidReturnStatement: The inferred type 'array{downloadlimit: array{'default-limit': int, enabled: true}}' does not match the declared return type 'array{downloadlimit: array{enabled: true}}' for OCA\Files_DownloadLimit\Capabilities::getCapabilities due to additional array shape fields (default-limit) (see https://psalm.dev/128)
static-psalm-analysis
Process completed with exit code 2.