for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace VCR\Util;
class CurlException extends \Exception
{
/**
* @var array<string,mixed>
*/
private $info;
* @param resource $ch The cURL handler
*
* @return CurlException
public static function create($ch): self
$e = new self(curl_error($ch), curl_errno($ch));
$e->info = curl_getinfo($ch);
curl_getinfo($ch)
array<string,*>
$info
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
return $e;
}
* Returns the curl_info array.
* @return array<string,mixed>
public function getInfo(): array
return $this->info;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..