From c0e0ec697a251e709a6e36d988f74f7d0ab02f56 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Sat, 23 Sep 2023 18:05:39 +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 8b5c356c..48a531f5 100644 --- a/src/Entity/Book.php +++ b/src/Entity/Book.php @@ -313,7 +313,7 @@ public function addAuthor(string $author): static public function removeAuthor(string $author): static { foreach ($this->authors as $key => $value) { - if ($value === $author) { + if (strtolower($value) === strtolower($author)) { unset($this->authors[$key]); } }