Skip to content

Commit

Permalink
add single quotes to ucword
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 23, 2023
1 parent fc0bd21 commit c0e0ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Book.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
Expand Down

0 comments on commit c0e0ec6

Please sign in to comment.