summaryrefslogtreecommitdiff
path: root/app/Statistics/Repository/LatestUserRepository.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Statistics/Repository/LatestUserRepository.php')
-rw-r--r--app/Statistics/Repository/LatestUserRepository.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Statistics/Repository/LatestUserRepository.php b/app/Statistics/Repository/LatestUserRepository.php
index f7fc037e2c..722110709c 100644
--- a/app/Statistics/Repository/LatestUserRepository.php
+++ b/app/Statistics/Repository/LatestUserRepository.php
@@ -110,7 +110,7 @@ class LatestUserRepository implements LatestUserRepositoryInterface
*
* @return string
*/
- public function latestUserRegDate(string $format = null): string
+ public function latestUserRegDate(string|null $format = null): string
{
$format ??= I18N::dateFormat();
$user = $this->latestUserQuery();
@@ -124,7 +124,7 @@ class LatestUserRepository implements LatestUserRepositoryInterface
*
* @return string
*/
- public function latestUserRegTime(string $format = null): string
+ public function latestUserRegTime(string|null $format = null): string
{
$format ??= str_replace('%', '', I18N::timeFormat());
$user = $this->latestUserQuery();
@@ -138,7 +138,7 @@ class LatestUserRepository implements LatestUserRepositoryInterface
*
* @return string
*/
- public function latestUserLoggedin(string $yes = null, string $no = null): string
+ public function latestUserLoggedin(string|null $yes = null, string|null $no = null): string
{
$yes ??= I18N::translate('yes');
$no ??= I18N::translate('no');