expose default-limit to capabilities #273
psalm.yml
on: pull_request
static-psalm-analysis
25s
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.
|