Skip to content

Commit a459787

Browse files
committed
fix(TaskProcessing): Expose userFacingErrorMessage on ResponseDefinitions#CoreTaskProcessingTask
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 89166cb commit a459787

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

core/ResponseDefinitions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@
212212
* endedAt: ?int,
213213
* allowCleanup: bool,
214214
* includeWatermark: bool,
215+
* userFacingErrorMessage: ?string,
215216
* }
216217
*
217218
* @psalm-type CoreProfileAction = array{

lib/public/TaskProcessing/Task.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ final public function setIncludeWatermark(bool $includeWatermark): void {
295295
}
296296

297297
/**
298-
* @psalm-return array{id: int, lastUpdated: int, type: string, status: 'STATUS_CANCELLED'|'STATUS_FAILED'|'STATUS_SUCCESSFUL'|'STATUS_RUNNING'|'STATUS_SCHEDULED'|'STATUS_UNKNOWN', userId: ?string, appId: string, input: array<string, list<numeric|string>|numeric|string>, output: ?array<string, list<numeric|string>|numeric|string>, customId: ?string, completionExpectedAt: ?int, progress: ?float, scheduledAt: ?int, startedAt: ?int, endedAt: ?int, allowCleanup: bool, includeWatermark: bool}
298+
* @psalm-return array{id: int, lastUpdated: int, type: string, status: 'STATUS_CANCELLED'|'STATUS_FAILED'|'STATUS_SUCCESSFUL'|'STATUS_RUNNING'|'STATUS_SCHEDULED'|'STATUS_UNKNOWN', userId: ?string, appId: string, input: array<string, list<numeric|string>|numeric|string>, output: ?array<string, list<numeric|string>|numeric|string>, customId: ?string, completionExpectedAt: ?int, progress: ?float, scheduledAt: ?int, startedAt: ?int, endedAt: ?int, allowCleanup: bool, includeWatermark: bool, userFacingErrorMessage: ?string}
299299
* @since 30.0.0
300300
*/
301301
final public function jsonSerialize(): array {
@@ -316,6 +316,7 @@ final public function jsonSerialize(): array {
316316
'endedAt' => $this->getEndedAt(),
317317
'allowCleanup' => $this->getAllowCleanup(),
318318
'includeWatermark' => $this->getIncludeWatermark(),
319+
'userFacingErrorMessage' => $this->getUserFacingErrorMessage(),
319320
];
320321
}
321322

0 commit comments

Comments
 (0)