Skip to content
Permalink
Browse files

Fix ref

  • Loading branch information
muglug committed Dec 13, 2019
1 parent ca5f8fa commit c9b5e96b0fce3766176e95d568c3ee0c02e8c3c0
Showing with 4 additions and 2 deletions.
  1. +3 −1 src/Psalm/Plugin/Shepherd.php
  2. +1 −1 tests/TypeReconciliation/IssetTest.php
@@ -132,7 +132,9 @@ public static function getCurlErrorMessage($ch) : string
/** @var array */
$curl_info = curl_getinfo($ch);

if (($curl_info['ssl_verify_result'] ?? 0) !== 0) {
if (isset($curl_info['ssl_verify_result'])
&& $curl_info['ssl_verify_result'] !== 0
) {
switch ($curl_info['ssl_verify_result']) {
case 2:
return 'unable to get issuer certificate';
@@ -752,7 +752,7 @@ function bar(): void {
baz();
}
}',
'UndefinedVariable'
'error_message' => 'UndefinedVariable'
],
];
}

0 comments on commit c9b5e96

Please sign in to comment.
You can’t perform that action at this time.