feat: Add backend for table archive and favorite flag #185
psalm-matrix.yml
on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
4s
Annotations
7 errors
InvalidReturnType:
lib/Capabilities.php#L49
lib/Capabilities.php:49:13: InvalidReturnType: The declared return type 'array{tables: array{apiVersions: array<array-key, string>, column_types: array<array-key, string>, enabled: bool, version: string}}' for OCA\Tables\Capabilities::getCapabilities is incorrect, got 'array{tables: array{apiVersions: list{'1.0'}, column_types: list{'text-line', 'text-long'|'text-rich', 'text-link', 'number', 'number-stars', 'number-progress', 'selection', 'selection-multi', 'selection-check', 'datetime', 'datetime-date', 'datetime-time'}, enabled: bool, features: list{'favorite', 'archive'}, version: string}}' which is different due to additional array shape fields (features) (see https://psalm.dev/011)
|
InvalidReturnStatement:
lib/Capabilities.php#L59
lib/Capabilities.php:59:10: InvalidReturnStatement: The inferred type 'array{tables: array{apiVersions: list{'1.0'}, column_types: list{'text-line', 'text-long'|'text-rich', 'text-link', 'number', 'number-stars', 'number-progress', 'selection', 'selection-multi', 'selection-check', 'datetime', 'datetime-date', 'datetime-time'}, enabled: bool, features: list{'favorite', 'archive'}, version: string}}' does not match the declared return type 'array{tables: array{apiVersions: array<array-key, string>, column_types: array<array-key, string>, enabled: bool, version: string}}' for OCA\Tables\Capabilities::getCapabilities due to additional array shape fields (features) (see https://psalm.dev/128)
|
static-psalm-analysis dev-master
Process completed with exit code 2.
|
InvalidReturnType:
lib/Capabilities.php#L49
lib/Capabilities.php:49:13: InvalidReturnType: The declared return type 'array{tables: array{apiVersions: array<array-key, string>, column_types: array<array-key, string>, enabled: bool, version: string}}' for OCA\Tables\Capabilities::getCapabilities is incorrect, got 'array{tables: array{apiVersions: list{'1.0'}, column_types: list{'text-line', 'text-long'|'text-rich', 'text-link', 'number', 'number-stars', 'number-progress', 'selection', 'selection-multi', 'selection-check', 'datetime', 'datetime-date', 'datetime-time'}, enabled: bool, features: list{'favorite', 'archive'}, version: string}}' which is different due to additional array shape fields (features) (see https://psalm.dev/011)
|
InvalidReturnStatement:
lib/Capabilities.php#L59
lib/Capabilities.php:59:10: InvalidReturnStatement: The inferred type 'array{tables: array{apiVersions: list{'1.0'}, column_types: list{'text-line', 'text-long'|'text-rich', 'text-link', 'number', 'number-stars', 'number-progress', 'selection', 'selection-multi', 'selection-check', 'datetime', 'datetime-date', 'datetime-time'}, enabled: bool, features: list{'favorite', 'archive'}, version: string}}' does not match the declared return type 'array{tables: array{apiVersions: array<array-key, string>, column_types: array<array-key, string>, enabled: bool, version: string}}' for OCA\Tables\Capabilities::getCapabilities due to additional array shape fields (features) (see https://psalm.dev/128)
|
static-psalm-analysis dev-stable28
Process completed with exit code 2.
|
static-psalm-analysis-summary
Process completed with exit code 1.
|