Skip to content

Commit c49af6e

Browse files
VincentLangletJanEbbing
authored andcommitted
Avoid BC break
1 parent a095708 commit c49af6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/TextResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TextResult
2828
public $billedCharacters;
2929

3030
/**
31-
* @var string Model type used for the translation.
31+
* @var string|null Model type used for the translation.
3232
* @see TranslateTextOptions::MODEL_TYPE
3333
*/
3434
public $modelTypeUsed;
@@ -40,7 +40,7 @@ public function __construct(
4040
string $text,
4141
string $detectedSourceLang,
4242
int $billedCharacters,
43-
?string $modelTypeUsed
43+
?string $modelTypeUsed = null
4444
) {
4545
$this->text = $text;
4646
$this->detectedSourceLang = LanguageCode::standardizeLanguageCode($detectedSourceLang);

0 commit comments

Comments
 (0)