diff --git a/src/Helper/StringHelper.php b/src/Helper/StringHelper.php index d60a808..b5cb7fa 100644 --- a/src/Helper/StringHelper.php +++ b/src/Helper/StringHelper.php @@ -6,8 +6,6 @@ use Symfony\Component\String\Slugger\SluggerInterface; -use function Symfony\Component\String\u; - /** * This is a simple service just to create a unit test example. * @@ -22,6 +20,6 @@ public function __construct( public function slugify(?string $string): string { - return $this->slugger->slug(u($string)->lower()->toString())->toString(); + return $this->slugger->slug((string) $string)->lower()->toString(); } }