From 4125e33f236e8db2da478225dcadc2666090a4ae Mon Sep 17 00:00:00 2001 From: faissaloux Date: Mon, 5 Aug 2024 02:35:12 +0100 Subject: [PATCH] remove string cast --- src/Expectations/Profanity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Expectations/Profanity.php b/src/Expectations/Profanity.php index f9fd6fe..8018bea 100644 --- a/src/Expectations/Profanity.php +++ b/src/Expectations/Profanity.php @@ -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])); }) ));