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); }