From affe29e83c321cff4860c9954a09ff537016beee Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 8 Jan 2025 19:33:43 -0600 Subject: [PATCH] Fix type issue --- lib/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/User.php b/lib/User.php index a07dc7b0..1cd9cd84 100644 --- a/lib/User.php +++ b/lib/User.php @@ -45,7 +45,7 @@ class User{ // GETTERS // ******* - protected function GetSortName(): string{ + protected function GetSortName(): ?string{ if(!isset($this->_SortName)){ if($this->Name !== null){ preg_match('/\s(?:de |de la |di |van |von )?[^\s]+$/iu', $this->Name, $lastNameMatches);