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
* Type of exception
16
*
17
* @var string
18
*/
19
protected $type;
20
21
/**
22
* Data associated with the exception
23
*
24
* @var mixed
25
*/
26
protected $data;
27
28
/**
29
* Create a new exception
30
*
31
* @param string $message Exception message
32
* @param string $type Exception type
33
* @param mixed $data Associated data
34
* @param integer $code Exception numerical code, if applicable
35
*/
36
public function __construct($message, $type, $data = null, $code = 0) {
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.