Skip to content

Commit e541e6b

Browse files
committed
ext/curl: Remove bool type coercions in tests
1 parent 6ab02a9 commit e541e6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/curl/tests/curl_setopt_ssl.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ function check_error(CurlHandle $ch) {
2424
}
2525
}
2626

27-
function check_response($response, $clientCertSubject) {
28-
if (strpos($response, $clientCertSubject) === false) {
29-
echo "client cert subject not in response\n";
30-
} else {
27+
function check_response(string|false $response, string $clientCertSubject) {
28+
if ($response && str_contains($response, $clientCertSubject)) {
3129
echo "client cert subject in response\n";
30+
} else {
31+
echo "client cert subject not in response\n";
3232
}
3333
}
3434

0 commit comments

Comments
 (0)