mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 14:50:39 -04:00
Fix type issue
This commit is contained in:
parent
bc16b1fff8
commit
affe29e83c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class User{
|
||||||
// GETTERS
|
// GETTERS
|
||||||
// *******
|
// *******
|
||||||
|
|
||||||
protected function GetSortName(): string{
|
protected function GetSortName(): ?string{
|
||||||
if(!isset($this->_SortName)){
|
if(!isset($this->_SortName)){
|
||||||
if($this->Name !== null){
|
if($this->Name !== null){
|
||||||
preg_match('/\s(?:de |de la |di |van |von )?[^\s]+$/iu', $this->Name, $lastNameMatches);
|
preg_match('/\s(?:de |de la |di |van |von )?[^\s]+$/iu', $this->Name, $lastNameMatches);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue