fix nullsafe value the hard way

This commit is contained in:
Jean-Christian Paul Denis 2023-05-01 19:00:24 +02:00
parent 2fc1489a28
commit 5f6f4a9fb9
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -110,7 +110,7 @@ class Uninstaller
} }
uasort( uasort(
$this->modules, $this->modules,
fn ($a, $b) => Text::removeDiacritics(mb_strtolower($a->get('name'))) <=> Text::removeDiacritics(mb_strtolower($b->get('name'))) fn ($a, $b) => Text::removeDiacritics(mb_strtolower(is_string($a->get('name')) ? $a->get('name') : $a->getId())) <=> Text::removeDiacritics(mb_strtolower(is_string($b->get('name')) ? $b->get('name') : $b->getId()))
); );
return $this; return $this;