From aff999cd60c5dc7e5ad7ce1a5bbdb7cb15771b23 Mon Sep 17 00:00:00 2001
From: Martin Anderson-Clutz <mandclu@gmail.com>
Date: Sat, 13 Apr 2024 11:52:27 -0400
Subject: [PATCH] Issue #3382593 by PrabuEla: is_safe not declared correctly on
 sortbyweight Twig filter

---
 src/TwigExtension/SortByWeight.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/TwigExtension/SortByWeight.php b/src/TwigExtension/SortByWeight.php
index 2525b20..998039d 100644
--- a/src/TwigExtension/SortByWeight.php
+++ b/src/TwigExtension/SortByWeight.php
@@ -15,9 +15,7 @@ class SortByWeight extends AbstractExtension {
    */
   public function getFilters() {
     return [
-      new TwigFilter(
-        'sortbyweight', [$this, 'performSort', 'is_safe' => ['html']]
-      ),
+      new TwigFilter('sortbyweight', [$this, 'performSort']),
     ];
   }
 
-- 
GitLab