1 | <?php |
||
20 | class ErrorMessage |
||
|
|||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | public static $CSSClass = 'error'; |
||
26 | |||
27 | /** |
||
28 | * creates a message box. |
||
29 | * |
||
30 | * @param string $message |
||
31 | * @param string $name (optional) |
||
32 | * |
||
33 | * @return MessageBoxField |
||
34 | */ |
||
35 | public static function create($message, $name = null) |
||
39 | } |
||
40 |
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.