From 5f6f4a9fb919dec723bd717b5b5f597af9b541db Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 1 May 2023 19:00:24 +0200 Subject: [PATCH] fix nullsafe value the hard way --- src/Uninstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uninstaller.php b/src/Uninstaller.php index 33ec8c7..fe43ac4 100644 --- a/src/Uninstaller.php +++ b/src/Uninstaller.php @@ -110,7 +110,7 @@ class Uninstaller } uasort( $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;