In camelCase names are written without any punctuation, the start of each new word
being marked by a capital letter. The whole name starts with a capital letter as well.
Thus the name database provider becomes DatabaseProvider.
Loading history...
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) {
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.