Skip to content

Commit

Permalink
Removed unneeded cast.
Browse files Browse the repository at this point in the history
  • Loading branch information
ash-jc-allen committed Aug 4, 2024
1 parent cdf8192 commit 7dbc641
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 @@ -18,7 +18,7 @@ function (ObjectDescription $object) use (&$foundWords, $excluding): bool {

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

return (array) $foundWords === [];
return $foundWords === [];
},
'to not use profanity',
FileLineFinder::where(function (string $line) use (&$foundWords): bool {
Expand Down

0 comments on commit 7dbc641

Please sign in to comment.