Skip to content

Commit

Permalink
fix stan
Browse files Browse the repository at this point in the history
  • Loading branch information
garak committed Sep 7, 2024
1 parent f0b83f6 commit 0cef801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knp/Menu/Twig/MenuExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ public function isAncestor(ItemInterface $item, ?int $depth = null): bool

public function spaceless(string $content): string
{
return trim(preg_replace('/>\s+</', '><', $content));
return trim((string) preg_replace('/>\s+</', '><', $content));
}
}

0 comments on commit 0cef801

Please sign in to comment.