We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38fb90e commit fcb464aCopy full SHA for fcb464a
src/Responses/FineTuning/RetrieveJobResponseError.php
@@ -18,9 +18,9 @@ final class RetrieveJobResponseError implements ResponseContract
18
use ArrayAccessible;
19
20
private function __construct(
21
- public readonly string $code,
+ public readonly ?string $code,
22
public readonly ?string $param,
23
- public readonly string $message,
+ public readonly ?string $message,
24
) {
25
}
26
@@ -32,9 +32,9 @@ private function __construct(
32
public static function from(array $attributes): ?self
33
{
34
return new self(
35
- $attributes['code'],
36
- $attributes['param'],
37
- $attributes['message'],
+ $attributes['code'] ?? null,
+ $attributes['param'] ?? null,
+ $attributes['message'] ?? null,
38
);
39
40
0 commit comments