From 3d8ba3ff487e873577f501510322e9ebb24b5ef0 Mon Sep 17 00:00:00 2001
From: Dhruv Mittal <69727-dhruv.mittal@users.noreply.drupalcode.org>
Date: Tue, 18 Mar 2025 17:12:24 +0000
Subject: [PATCH] Issue #3511455 by dhruv.mittal: Call to a member function
 render() on string

---
 .../src/Form/SalesforceMappingFormCrudBase.php                  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php b/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php
index b2e91368..e36c6bb2 100644
--- a/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php
+++ b/modules/salesforce_mapping_ui/src/Form/SalesforceMappingFormCrudBase.php
@@ -524,7 +524,7 @@ abstract class SalesforceMappingFormCrudBase extends SalesforceMappingFormBase {
       $options[$info->id()] = $info->getLabel();
     }
     uasort($options, function ($a, $b) {
-      return strcmp($a->render(), $b->render());
+      return strcmp((string) $a, (string) $b);
     });
     return $options;
   }
-- 
GitLab