diff options
Diffstat (limited to 'app/Elements')
| -rw-r--r-- | app/Elements/AbstractElement.php | 2 | ||||
| -rw-r--r-- | app/Elements/NamePersonal.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Elements/AbstractElement.php b/app/Elements/AbstractElement.php index 9b91dcc79f..35fffd1ccc 100644 --- a/app/Elements/AbstractElement.php +++ b/app/Elements/AbstractElement.php @@ -78,7 +78,7 @@ abstract class AbstractElement implements ElementInterface * @param string $label * @param array<string>|null $subtags */ - public function __construct(string $label, array $subtags = null) + public function __construct(string $label, array|null $subtags = null) { $this->label = $label; $this->subtags = $subtags ?? static::SUBTAGS; diff --git a/app/Elements/NamePersonal.php b/app/Elements/NamePersonal.php index 9c4f64f5ce..3ae6f383af 100644 --- a/app/Elements/NamePersonal.php +++ b/app/Elements/NamePersonal.php @@ -89,7 +89,7 @@ class NamePersonal extends AbstractElement * @param string $label * @param array<string>|null $subtags */ - public function __construct(string $label, array $subtags = null) + public function __construct(string $label, array|null $subtags = null) { if ($subtags === null && in_array(I18N::languageTag(), static::SURNAME_FIRST_LANGUAGES, true)) { $subtags = static::SUBTAGS_SURNAME_FIRST; |
