Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fcb464a

Browse filesBrowse files
committed
Update RetriveJobResponseError
1 parent 38fb90e commit fcb464a
Copy full SHA for fcb464a

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎src/Responses/FineTuning/RetrieveJobResponseError.php‎

Copy file name to clipboardExpand all lines: src/Responses/FineTuning/RetrieveJobResponseError.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ final class RetrieveJobResponseError implements ResponseContract
1818
use ArrayAccessible;
1919

2020
private function __construct(
21-
public readonly string $code,
21+
public readonly ?string $code,
2222
public readonly ?string $param,
23-
public readonly string $message,
23+
public readonly ?string $message,
2424
) {
2525
}
2626

@@ -32,9 +32,9 @@ private function __construct(
3232
public static function from(array $attributes): ?self
3333
{
3434
return new self(
35-
$attributes['code'],
36-
$attributes['param'],
37-
$attributes['message'],
35+
$attributes['code'] ?? null,
36+
$attributes['param'] ?? null,
37+
$attributes['message'] ?? null,
3838
);
3939
}
4040

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.