Feat: make taskprocessing task types toggleable #52296
Annotations
3 errors and 1 warning
Psalm:
lib/private/TaskProcessing/Manager.php#L735
lib/private/TaskProcessing/Manager.php:735:69: InvalidNullableReturnType: The declared return type 'array<string, array{description: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, inputShapeDefaults: array<array-key, numeric|string>, inputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalInputShapeDefaults: array<array-key, numeric|string>, optionalInputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>}>' for OC\TaskProcessing\Manager::getAvailableTaskTypes is not nullable, but 'array<array-key, array{description: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, inputShapeDefaults: array<array-key, numeric|string>, inputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalInputShapeDefaults: array<array-key, numeric|string>, optionalInputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>}>|null' contains null (see https://psalm.dev/144)
|
Psalm:
lib/private/TaskProcessing/Manager.php#L771
lib/private/TaskProcessing/Manager.php:771:10: NullableReturnStatement: The declared return type 'array<string, array{description: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, inputShapeDefaults: array<array-key, numeric|string>, inputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalInputShapeDefaults: array<array-key, numeric|string>, optionalInputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>}>' for OC\TaskProcessing\Manager::getAvailableTaskTypes is not nullable, but the function returns 'array<array-key, array{description: string, inputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, inputShapeDefaults: array<array-key, numeric|string>, inputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, name: string, optionalInputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalInputShapeDefaults: array<array-key, numeric|string>, optionalInputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, optionalOutputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, optionalOutputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>, outputShape: array<array-key, OCP\TaskProcessing\ShapeDescriptor>, outputShapeEnumValues: array<array-key, array<array-key, OCP\TaskProcessing\ShapeEnumValue>>}>|null' (see https://psalm.dev/139)
|
Psalm
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading