Skip to content

Commit 6eefb5d

Browse files
authored
Merge pull request #218 from shakaran/feat/restore-fefault-null-to-nullable-type-property
feat: restore default null to nullable type property
2 parents 1ad379f + 837a278 commit 6eefb5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/GoogleTranslate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ class GoogleTranslate
3131
/**
3232
* @var string|null Source language which the string should be translated from.
3333
*/
34-
protected ?string $source;
34+
protected ?string $source = null;
3535

3636
/**
3737
* @var string|null Target language which the string should be translated to.
3838
*/
39-
protected ?string $target;
39+
protected ?string $target = null;
4040

4141
/*
4242
* @var string|null Regex pattern to match replaceable parts in a string, defualts to "words"
4343
*/
44-
protected ?string $pattern;
44+
protected ?string $pattern = null;
4545

4646
/**
4747
* @var string|null Last detected source language.
4848
*/
49-
protected ?string $lastDetectedSource;
49+
protected ?string $lastDetectedSource = null;
5050

5151
/**
5252
* @var string Google Translate base URL.

0 commit comments

Comments
 (0)