1 | <?php |
||
17 | abstract class HTTPClientAbstract implements HTTPClientInterface{ |
||
18 | |||
19 | /** |
||
20 | * @var mixed |
||
21 | */ |
||
22 | protected $http; |
||
23 | |||
24 | /** |
||
25 | * @var \chillerlan\Traits\ContainerInterface|mixed |
||
26 | */ |
||
27 | protected $options; |
||
28 | |||
29 | /** @inheritdoc */ |
||
30 | public function __construct(ContainerInterface $options){ |
||
33 | |||
34 | /** @inheritdoc */ |
||
35 | public function normalizeRequestHeaders(array $headers):array { |
||
58 | |||
59 | /** |
||
60 | * @param $data |
||
61 | * |
||
62 | * @return array|string |
||
63 | */ |
||
64 | protected function rawurlencode($data){ |
||
75 | |||
76 | /** |
||
77 | * from https://github.com/abraham/twitteroauth/blob/master/src/Util.php |
||
78 | * |
||
79 | * @param array $params |
||
80 | * @param bool $urlencode |
||
|
|||
81 | * @param string $delimiter |
||
82 | * @param string $enclosure |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | public function buildQuery(array $params, bool $urlencode = null, string $delimiter = null, string $enclosure = null):string { |
||
130 | |||
131 | /** |
||
132 | * @param array $params |
||
133 | * @param bool|null $booleans_as_string - converts booleans to "true"/"false", otherwise "0"/"1" |
||
134 | * |
||
135 | * @return array |
||
136 | */ |
||
137 | public function checkQueryParams(array $params, bool $booleans_as_string = null){ |
||
154 | |||
155 | } |
||
156 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.