- Timestamp:
- 11/25/2021 01:10:30 AM (5 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/Requests/Exception/Transport/Curl.php
r52243 r52244 1 1 <?php 2 /** 3 * CURL Transport Exception. 4 * 5 * @package Requests\Exceptions 6 */ 2 7 3 class Requests_Exception_Transport_cURL extends Requests_Exception_Transport { 8 namespace WpOrg\Requests\Exception\Transport; 9 10 use WpOrg\Requests\Exception\Transport; 11 12 /** 13 * CURL Transport Exception. 14 * 15 * @package Requests\Exceptions 16 */ 17 final class Curl extends Transport { 4 18 5 19 const EASY = 'cURLEasy'; … … 30 44 protected $reason = 'Unknown'; 31 45 46 /** 47 * Create a new exception. 48 * 49 * @param string $message Exception message. 50 * @param string $type Exception type. 51 * @param mixed $data Associated data, if applicable. 52 * @param int $code Exception numerical code, if applicable. 53 */ 32 54 public function __construct($message, $type, $data = null, $code = 0) { 33 55 if ($type !== null) { … … 36 58 37 59 if ($code !== null) { 38 $this->code = $code;60 $this->code = (int) $code; 39 61 } 40 62 … … 48 70 49 71 /** 50 * Get the error message 72 * Get the error message. 73 * 74 * @return string 51 75 */ 52 76 public function getReason() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)