Skip to content

Commit 5c16ed1

Browse files
authored
fix: explicit nullable types (#4)
1 parent ac6246f commit 5c16ed1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Name.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Name
1919
*
2020
* @param array|null $parts
2121
*/
22-
public function __construct(array $parts = null)
22+
public function __construct(?array $parts = null)
2323
{
2424
if (null !== $parts) {
2525
$this->setParts($parts);

src/Part/LastnamePrefix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class LastnamePrefix extends Lastname
66
{
77
protected $normalized = '';
88

9-
public function __construct(string $value, string $normalized = null)
9+
public function __construct(string $value, ?string $normalized = null)
1010
{
1111
$this->normalized = $normalized ?? $value;
1212

src/Part/PreNormalizedPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ abstract class PreNormalizedPart extends AbstractPart
66
{
77
protected $normalized = '';
88

9-
public function __construct(string $value, string $normalized = null)
9+
public function __construct(string $value, ?string $normalized = null)
1010
{
1111
$this->normalized = $normalized ?? $value;
1212

0 commit comments

Comments
 (0)