| 1 | <?php | ||
| 3 | class CustomError | ||
|  | |||
| 4 | { | ||
| 5 | public $view; | ||
| 6 | public $actions; | ||
| 7 | public $accountId; | ||
| 8 | public $isVerified; | ||
| 9 | public $isTokenFresh; | ||
| 10 | public $page; | ||
| 11 | public $referrer; | ||
| 12 | public $msg; | ||
| 13 | public $varsToDump; | ||
| 14 | |||
| 15 | function __construct($msg = 'not Set', $varsToDump = 'not Set', $view = 'not Set', $actions = 'not Set', $accountId = 'not Set', $isVerified = 'not Set', $isTokenFresh = 'not Set', $page = 'not Set', $referrer = 'not Set') | ||
| 27 | |||
| 28 | function writeErrorToLog() | ||
| 41 | |||
| 42 | function actionsToString() | ||
| 46 | |||
| 47 | function varsToDumpToString() | ||
| 51 | } | 
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.