Skip to content

Commit c1c67aa

Browse files
authored
ENGCOM-6660: Fix confusing phpdoc in curl client #26495
2 parents 3811867 + e7cc65b commit c1c67aa

File tree

1 file changed

+3
-2
lines changed
  • lib/internal/Magento/Framework/HTTP/Client

1 file changed

+3
-2
lines changed

lib/internal/Magento/Framework/HTTP/Client/Curl.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ class Curl implements \Magento\Framework\HTTP\ClientInterface
107107
protected $_headerCount = 0;
108108

109109
/**
110-
* Set request timeout, msec
110+
* Set request timeout
111111
*
112-
* @param int $value
112+
* @param int $value value in seconds
113113
* @return void
114114
*/
115115
public function setTimeout($value)
@@ -423,6 +423,7 @@ protected function makeRequest($method, $uri, $params = [])
423423
*/
424424
public function doError($string)
425425
{
426+
// phpcs:ignore Magento2.Exceptions.DirectThrow
426427
throw new \Exception($string);
427428
}
428429

0 commit comments

Comments
 (0)