Skip to content

Commit 0f8f66d

Browse files
committed
fix: corrects incorrect types
1 parent a9629c4 commit 0f8f66d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Results/DTO/Candidate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @phpstan-import-type MessageArrayShape from Message
2020
*
21-
* @phpstan-type CandidateArrayShape array{message: MessageArrayShape, finishReason: string, tokenCount: int|string}
21+
* @phpstan-type CandidateArrayShape array{message: MessageArrayShape, finishReason: string, tokenCount: int}
2222
*
2323
* @extends AbstractDataValueObject<CandidateArrayShape>
2424
*/
@@ -150,7 +150,7 @@ public static function fromArray(array $array): Candidate
150150
return new self(
151151
Message::fromArray($messageData),
152152
FinishReasonEnum::from($array['finishReason']),
153-
(int) $array['tokenCount']
153+
$array['tokenCount']
154154
);
155155
}
156156
}

0 commit comments

Comments
 (0)