Skip to content

Commit

Permalink
Fix TwigSortSetNode
Browse files Browse the repository at this point in the history
  • Loading branch information
chesn0k committed Oct 17, 2024
1 parent 39471a9 commit 3ce2551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/TwigSortSetNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function compile(Compiler $compiler): void {
->raw(";\n")
->write('$data = explode("\n", $data);' . "\n")
->write('$data = array_unique($data);' . "\n")
->write('usort($lines, "strcmp");' . "\n")
->write('usort($data, "strcmp");' . "\n")
->write('yield ltrim(implode("\n", $data)) . "\n";' . "\n");
}

Expand Down

0 comments on commit 3ce2551

Please sign in to comment.