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 f93d859 commit 4b6b67b
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 @@ -48,7 +48,7 @@ function (ObjectDescription $object) use (&$foundWords, $excluding, $including,

$foundWords = array_filter($words, fn ($word): bool => preg_match('/\b'.preg_quote($word, '/').'\b/i', $fileContents) === 1);

dd($foundWords);
//dd($foundWords);

return $foundWords === [];
},
Expand Down

0 comments on commit 4b6b67b

Please sign in to comment.