We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a095708 commit c49af6eCopy full SHA for c49af6e
1 file changed
src/TextResult.php
@@ -28,7 +28,7 @@ class TextResult
28
public $billedCharacters;
29
30
/**
31
- * @var string Model type used for the translation.
+ * @var string|null Model type used for the translation.
32
* @see TranslateTextOptions::MODEL_TYPE
33
*/
34
public $modelTypeUsed;
@@ -40,7 +40,7 @@ public function __construct(
40
string $text,
41
string $detectedSourceLang,
42
int $billedCharacters,
43
- ?string $modelTypeUsed
+ ?string $modelTypeUsed = null
44
) {
45
$this->text = $text;
46
$this->detectedSourceLang = LanguageCode::standardizeLanguageCode($detectedSourceLang);
0 commit comments