Skip to content

Commit

Permalink
remove string cast
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux committed Aug 5, 2024
1 parent b3971bd commit 4125e33
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 @@ -22,6 +22,6 @@ function (ObjectDescription $object) use (&$foundWords, $excluding): bool {
},
'to not use profanity',
FileLineFinder::where(function (string $line) use (&$foundWords): bool {
return str_contains(strtolower($line), (string) strtolower(array_values($foundWords ?? [])[0]));
return str_contains(strtolower($line), strtolower(array_values($foundWords ?? [])[0]));
})
));

0 comments on commit 4125e33

Please sign in to comment.