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 a13e1f0 commit 8287841
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Expectations/Profanity.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ function (ObjectDescription $object) use (&$foundWords, $excluding, $including,

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

dd($foundWords);

return $foundWords === [];
},
'to not use profanity: ' . $foundWords,
Expand Down

0 comments on commit 8287841

Please sign in to comment.