1 | <?php |
||
7 | class SS_Datetimezone extends SS_Datetime { |
||
8 | |||
9 | /** |
||
10 | * @var \Member[] |
||
11 | */ |
||
12 | protected static $_cache_members = []; |
||
13 | |||
14 | /** |
||
15 | * Returns the date in the raw SQL-format specific to a given timezone passed from the Member class, e.g. “2006-01-18 16:32:04” |
||
16 | */ |
||
17 | public function Format($format) { |
||
28 | |||
29 | /** |
||
30 | * Format can be called a lot of time in tight loops, so we cache the current user |
||
31 | * per request |
||
32 | * |
||
33 | * @return \Member|null |
||
34 | */ |
||
35 | protected function getCurrentCachedUser() { |
||
45 | } |
||
46 |
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.