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 abf52dd commit d9382a0
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 @@ -51,7 +51,7 @@ function (ObjectDescription $object) use (&$foundWords, $excluding, $including,
return $foundWords === [];
},
'to not use profanity: ' . $foundWords,
FileLineFinder::where(function (string $line, string $foundWords) use (&$foundWords): bool {
FileLineFinder::where(function (string $line) use (&$foundWords): bool {
dd($foundWords);
return str_contains(strtolower($line), strtolower((string) array_values($foundWords ?? [])[0]));
})
Expand Down

0 comments on commit d9382a0

Please sign in to comment.