From fc0bd21da8d14b6e06de88b08e0eebe711bd74af Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Sat, 23 Sep 2023 18:02:06 +0200 Subject: [PATCH] add single quotes to ucword --- src/Entity/Book.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Entity/Book.php b/src/Entity/Book.php index 3b131755..8b5c356c 100644 --- a/src/Entity/Book.php +++ b/src/Entity/Book.php @@ -284,7 +284,7 @@ public function setPublishDate(?\DateTimeInterface $publishDate): static public function getAuthors(): array { return array_map(static function ($item) { - return ucwords(strtolower($item, self::UCWORDS_SEPARATORS)); + return ucwords(strtolower($item), self::UCWORDS_SEPARATORS); }, $this->authors); }