| 1 | <?php |
||
| 13 | class Requests_Exception_HTTP_Unknown extends Requests_Exception_HTTP { |
||
| 14 | /** |
||
| 15 | * HTTP status code |
||
| 16 | * |
||
| 17 | * @var integer|bool Code if available, false if an error occurred |
||
| 18 | */ |
||
| 19 | protected $code = 0; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Reason phrase |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $reason = 'Unknown'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new exception |
||
| 30 | * |
||
| 31 | * If `$data` is an instance of {@see Requests_Response}, uses the status |
||
| 32 | * code from it. Otherwise, sets as 0 |
||
| 33 | * |
||
| 34 | * @param string|null $reason Reason phrase |
||
| 35 | * @param mixed $data Associated data |
||
| 36 | */ |
||
| 37 | public function __construct($reason = null, $data = null) { |
||
| 44 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.