fix(files): conversion api simplification and conflict check #53229
Annotations
4 errors
Psalm:
lib/private/Files/Conversion/ConversionManager.php#L122
lib/private/Files/Conversion/ConversionManager.php:122:13: MoreSpecificReturnType: The declared return type 'list<OCP\Files\Conversion\IConversionProvider>' for OC\Files\Conversion\ConversionManager::getRegisteredProviders is more specific than the inferred return type 'array<array-key, OCP\Files\Conversion\IConversionProvider|mixed>' (see https://psalm.dev/070)
|
Psalm:
lib/private/Files/Conversion/ConversionManager.php#L126
lib/private/Files/Conversion/ConversionManager.php:126:11: LessSpecificReturnStatement: The type 'non-empty-array<array-key, OCP\Files\Conversion\IConversionProvider>' is more general than the declared return type 'list<OCP\Files\Conversion\IConversionProvider>' for OC\Files\Conversion\ConversionManager::getRegisteredProviders (see https://psalm.dev/129)
|
Psalm:
lib/private/Files/Conversion/ConversionManager.php#L148
lib/private/Files/Conversion/ConversionManager.php:148:10: LessSpecificReturnStatement: The type 'array<array-key, OCP\Files\Conversion\IConversionProvider|mixed>' is more general than the declared return type 'list<OCP\Files\Conversion\IConversionProvider>' for OC\Files\Conversion\ConversionManager::getRegisteredProviders (see https://psalm.dev/129)
|
Psalm
Process completed with exit code 2.
|
Loading