We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab02a9 commit e541e6bCopy full SHA for e541e6b
ext/curl/tests/curl_setopt_ssl.phpt
@@ -24,11 +24,11 @@ function check_error(CurlHandle $ch) {
24
}
25
26
27
-function check_response($response, $clientCertSubject) {
28
- if (strpos($response, $clientCertSubject) === false) {
29
- echo "client cert subject not in response\n";
30
- } else {
+function check_response(string|false $response, string $clientCertSubject) {
+ if ($response && str_contains($response, $clientCertSubject)) {
31
echo "client cert subject in response\n";
+ } else {
+ echo "client cert subject not in response\n";
32
33
34
0 commit comments