perf: use more optimized way to get user storage info in ocs user info #51553
Annotations
3 errors
Psalm:
apps/provisioning_api/lib/Controller/AUserData.php#L250
apps/provisioning_api/lib/Controller/AUserData.php:250:13: InvalidReturnType: The declared return type 'array{free?: float|int, quota?: float|int|string, relative?: float|int, total?: float|int, used?: float|int}' for OCA\Provisioning_API\Controller\AUserData::fillStorageInfo is incorrect, got 'array{free?: float|int<min, max>, quota?: 'none'|false|float|int<min, max>, relative?: 0|float, total?: float|int, used?: int}' (see https://psalm.dev/011)
|
Psalm:
apps/provisioning_api/lib/Controller/AUserData.php#L301
apps/provisioning_api/lib/Controller/AUserData.php:301:10: InvalidReturnStatement: The inferred type 'array{free?: float|int<min, max>, quota: 'none'|false|float|int<min, max>, relative?: 0|float, total?: float|int, used: int}' does not match the declared return type 'array{free?: float|int, quota?: float|int|string, relative?: float|int, total?: float|int, used?: float|int}' for OCA\Provisioning_API\Controller\AUserData::fillStorageInfo (see https://psalm.dev/128)
|
Psalm
Process completed with exit code 2.
|
Loading