fix type casting in slugifier

This commit is contained in:
Simon Vieille 2024-01-27 15:49:39 +01:00
parent 8edbf0cc08
commit c40c7e3362
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -13,7 +13,7 @@ class Slugify
{ {
public function slugify($data): ?string public function slugify($data): ?string
{ {
return $this->create()->slugify($data); return $this->create()->slugify((string) $data);
} }
protected function create(): BaseSlugify protected function create(): BaseSlugify