Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
JonPurvis committed Oct 18, 2024
1 parent 3efb992 commit 03c00c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Expectations/Profanity.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function (ObjectDescription $object) use (&$foundWords, $excluding, $including,

return $foundWords === [];
},
'to not use profanity: ' . implode(',', $foundWords),
'to not use profanity: ' . $foundWords,
FileLineFinder::where(function (string $line) use (&$foundWords): bool {
return str_contains(strtolower($line), strtolower((string) array_values($foundWords ?? [])[0]));
})
Expand Down

0 comments on commit 03c00c1

Please sign in to comment.