Skip to content

Commit 8f7d741

Browse files
arshidkv12Arshid
andauthored
str_contains (#57042)
Co-authored-by: Arshid <[email protected]>
1 parent 7bb0f55 commit 8f7d741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Support/Env.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ protected static function getOption($key)
285285
*/
286286
protected static function prepareQuotedValue(string $input)
287287
{
288-
return strpos($input, '"') !== false
288+
return str_contains($input, '"')
289289
? "'".self::addSlashesExceptFor($input, ['"'])."'"
290290
: '"'.self::addSlashesExceptFor($input, ["'"]).'"';
291291
}

0 commit comments

Comments
 (0)