Skip to content

Commit

Permalink
fixup! feat: ai message summary
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Dec 17, 2024
1 parent 98490e8 commit 3f009fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Listener/TaskProcessingListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public function handle(Event $event): void {
if ($task->getOutput() !== null) {
$output = $task->getOutput();
if (isset($task->getOutput()['output'])) {

Check warning on line 65 in lib/Listener/TaskProcessingListener.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/TaskProcessingListener.php#L63-L65

Added lines #L63 - L65 were not covered by tests
/* @psalm-suppress PossiblyInvalidCast */
$summary = (string)$output['output'];

Check failure on line 67 in lib/Listener/TaskProcessingListener.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

PossiblyInvalidCast

lib/Listener/TaskProcessingListener.php:67:24: PossiblyInvalidCast: list<numeric|string> cannot be cast to string (see https://psalm.dev/190)

Check warning on line 67 in lib/Listener/TaskProcessingListener.php

View check run for this annotation

Codecov / codecov/patch

lib/Listener/TaskProcessingListener.php#L67

Added line #L67 was not covered by tests
} else {
$this->logger->info('Error handling task processing event output is invalid');
Expand Down

0 comments on commit 3f009fe

Please sign in to comment.