Skip to content

Commit

Permalink
Run lint and rector
Browse files Browse the repository at this point in the history
  • Loading branch information
knash94 committed Jul 4, 2024
1 parent ba7959b commit f3db07b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Responses/Batches/BatchResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class BatchResponse implements ResponseContract, ResponseHasMetaInformatio
use HasMetaInformation;

/**
* @param array<string, string> $metadata
* @param array<string, string>|null $metadata
*/
private function __construct(
public string $id,
Expand Down
1 change: 1 addition & 0 deletions src/Responses/Threads/Runs/ThreadRunStreamResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ThreadRunStreamResponse implements ResponseContract
* @use ArrayAccessible<array{event: string, data: array<string, mixed>}>
*/
use ArrayAccessible;

use FakeableForStreamedResponse;

private function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ final class BatchListResponseFixture
'status' => 'completed',
'output_file_id' => 'file-cvaTdG',
'error_file_id' => 'file-HOWS94',
'created_at' => 1711471533,
'in_progress_at' => 1711471538,
'expires_at' => 1711557933,
'finalizing_at' => 1711493133,
'completed_at' => 1711493163,
'created_at' => 1_711_471_533,
'in_progress_at' => 1_711_471_538,
'expires_at' => 1_711_557_933,
'finalizing_at' => 1_711_493_133,
'completed_at' => 1_711_493_163,
'failed_at' => null,
'expired_at' => null,
'cancelling_at' => null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class BatchResponseFixture
'status' => 'validating',
'output_file_id' => null,
'error_file_id' => null,
'created_at' => 1711471533,
'created_at' => 1_711_471_533,
'in_progress_at' => null,
'expires_at' => null,
'finalizing_at' => null,
Expand Down
2 changes: 1 addition & 1 deletion tests/Responses/Threads/Runs/ThreadRunStreamResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
test('handles invalid event', function () {
$response = ThreadRunStreamResponse::fake(runCreatedThreadInvalidEventStream());

expect(fn() => $response->getIterator()->current()->response)
expect(fn () => $response->getIterator()->current()->response)
->toThrow(UnknownEventException::class);
});

0 comments on commit f3db07b

Please sign in to comment.