Add support for workflow_ocr_backend #647
Annotations
32 errors and 1 warning
InvalidReturnType:
lib/OcrProcessors/Remote/Client/ApiClient.php#L41
lib/OcrProcessors/Remote/Client/ApiClient.php:41:83: InvalidReturnType: The declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr is incorrect, got 'array<array-key, mixed>|null|object' (see https://psalm.dev/011)
|
InvalidReturnStatement:
lib/OcrProcessors/Remote/Client/ApiClient.php#L71
lib/OcrProcessors/Remote/Client/ApiClient.php:71:10: InvalidReturnStatement: The inferred type 'array<array-key, mixed>|null|object' does not match the declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr (see https://psalm.dev/128)
|
NullableReturnStatement:
lib/OcrProcessors/Remote/Client/ApiClient.php#L71
lib/OcrProcessors/Remote/Client/ApiClient.php:71:10: NullableReturnStatement: The declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr is not nullable, but the function returns 'array<array-key, mixed>|null|object' (see https://psalm.dev/139)
|
InvalidReturnStatement:
lib/OcrProcessors/Remote/Client/Configuration.php#L497
lib/OcrProcessors/Remote/Client/Configuration.php:497:10: InvalidReturnStatement: The inferred type 'array<array-key, string>|mixed|string' does not match the declared return type 'string' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\Configuration::getHostString (see https://psalm.dev/128)
|
InvalidPropertyAssignmentValue:
lib/OcrProcessors/Remote/Client/Model/ErrorResult.php#L249
lib/OcrProcessors/Remote/Client/Model/ErrorResult.php:249:4: InvalidPropertyAssignmentValue: $this->openAPINullablesSetToNull with declared type 'array<array-key, bool>' cannot be assigned type 'non-empty-array<array-key, bool|string>' (see https://psalm.dev/145)
|
InvalidPropertyAssignmentValue:
lib/OcrProcessors/Remote/Client/Model/OcrResult.php#L270
lib/OcrProcessors/Remote/Client/Model/OcrResult.php:270:4: InvalidPropertyAssignmentValue: $this->openAPINullablesSetToNull with declared type 'array<array-key, bool>' cannot be assigned type 'non-empty-array<array-key, bool|string>' (see https://psalm.dev/145)
|
NoValue:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L148
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:148:4: NoValue: All possible types for this return were invalidated - This may be dead code (see https://psalm.dev/179)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L163
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:163:38: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L328
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:328:25: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L344
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:344:26: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
Nextcloud dev-master PHP8.2
The job was canceled because "dev-master_8_3" failed.
|
InvalidReturnType:
lib/OcrProcessors/Remote/Client/ApiClient.php#L41
lib/OcrProcessors/Remote/Client/ApiClient.php:41:83: InvalidReturnType: The declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr is incorrect, got 'array<array-key, mixed>|null|object' (see https://psalm.dev/011)
|
InvalidReturnStatement:
lib/OcrProcessors/Remote/Client/ApiClient.php#L71
lib/OcrProcessors/Remote/Client/ApiClient.php:71:10: InvalidReturnStatement: The inferred type 'array<array-key, mixed>|null|object' does not match the declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr (see https://psalm.dev/128)
|
NullableReturnStatement:
lib/OcrProcessors/Remote/Client/ApiClient.php#L71
lib/OcrProcessors/Remote/Client/ApiClient.php:71:10: NullableReturnStatement: The declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr is not nullable, but the function returns 'array<array-key, mixed>|null|object' (see https://psalm.dev/139)
|
InvalidReturnStatement:
lib/OcrProcessors/Remote/Client/Configuration.php#L497
lib/OcrProcessors/Remote/Client/Configuration.php:497:10: InvalidReturnStatement: The inferred type 'array<array-key, string>|mixed|string' does not match the declared return type 'string' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\Configuration::getHostString (see https://psalm.dev/128)
|
InvalidPropertyAssignmentValue:
lib/OcrProcessors/Remote/Client/Model/ErrorResult.php#L249
lib/OcrProcessors/Remote/Client/Model/ErrorResult.php:249:4: InvalidPropertyAssignmentValue: $this->openAPINullablesSetToNull with declared type 'array<array-key, bool>' cannot be assigned type 'non-empty-array<array-key, bool|string>' (see https://psalm.dev/145)
|
InvalidPropertyAssignmentValue:
lib/OcrProcessors/Remote/Client/Model/OcrResult.php#L270
lib/OcrProcessors/Remote/Client/Model/OcrResult.php:270:4: InvalidPropertyAssignmentValue: $this->openAPINullablesSetToNull with declared type 'array<array-key, bool>' cannot be assigned type 'non-empty-array<array-key, bool|string>' (see https://psalm.dev/145)
|
NoValue:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L148
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:148:4: NoValue: All possible types for this return were invalidated - This may be dead code (see https://psalm.dev/179)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L163
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:163:38: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L328
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:328:25: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L344
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:344:26: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
Nextcloud dev-master PHP8.1
The job was canceled because "dev-master_8_3" failed.
|
InvalidReturnType:
lib/OcrProcessors/Remote/Client/ApiClient.php#L41
lib/OcrProcessors/Remote/Client/ApiClient.php:41:83: InvalidReturnType: The declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr is incorrect, got 'array<array-key, mixed>|null|object' (see https://psalm.dev/011)
|
InvalidReturnStatement:
lib/OcrProcessors/Remote/Client/ApiClient.php#L71
lib/OcrProcessors/Remote/Client/ApiClient.php:71:10: InvalidReturnStatement: The inferred type 'array<array-key, mixed>|null|object' does not match the declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr (see https://psalm.dev/128)
|
NullableReturnStatement:
lib/OcrProcessors/Remote/Client/ApiClient.php#L71
lib/OcrProcessors/Remote/Client/ApiClient.php:71:10: NullableReturnStatement: The declared return type 'OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\ErrorResult|OCA\WorkflowOcr\OcrProcessors\Remote\Client\Model\OcrResult' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\ApiClient::processOcr is not nullable, but the function returns 'array<array-key, mixed>|null|object' (see https://psalm.dev/139)
|
InvalidReturnStatement:
lib/OcrProcessors/Remote/Client/Configuration.php#L497
lib/OcrProcessors/Remote/Client/Configuration.php:497:10: InvalidReturnStatement: The inferred type 'array<array-key, string>|mixed|string' does not match the declared return type 'string' for OCA\WorkflowOcr\OcrProcessors\Remote\Client\Configuration::getHostString (see https://psalm.dev/128)
|
InvalidPropertyAssignmentValue:
lib/OcrProcessors/Remote/Client/Model/ErrorResult.php#L249
lib/OcrProcessors/Remote/Client/Model/ErrorResult.php:249:4: InvalidPropertyAssignmentValue: $this->openAPINullablesSetToNull with declared type 'array<array-key, bool>' cannot be assigned type 'non-empty-array<array-key, bool|string>' (see https://psalm.dev/145)
|
InvalidPropertyAssignmentValue:
lib/OcrProcessors/Remote/Client/Model/OcrResult.php#L270
lib/OcrProcessors/Remote/Client/Model/OcrResult.php:270:4: InvalidPropertyAssignmentValue: $this->openAPINullablesSetToNull with declared type 'array<array-key, bool>' cannot be assigned type 'non-empty-array<array-key, bool|string>' (see https://psalm.dev/145)
|
NoValue:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L148
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:148:4: NoValue: All possible types for this return were invalidated - This may be dead code (see https://psalm.dev/179)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L163
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:163:38: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L328
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:328:25: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/OcrProcessors/Remote/Client/ObjectSerializer.php#L344
lib/OcrProcessors/Remote/Client/ObjectSerializer.php:344:26: InvalidArgument: Argument 1 of OCA\WorkflowOcr\OcrProcessors\Remote\Client\ObjectSerializer::toString expects DateTime|bool|float|int, but string provided (see https://psalm.dev/004)
|
Nextcloud dev-master PHP8.3
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|