1 | <?php |
||
8 | class AccordionParser |
||
|
|||
9 | { |
||
10 | public static function get_shortcodes() |
||
14 | |||
15 | /** |
||
16 | * @param string $arguments array with the type |
||
17 | * @param array $code string of the code to parse |
||
18 | * @param ShortcodeParser $parser Parser root user. |
||
19 | * @param string $shortcode |
||
20 | * @param array $extra |
||
21 | * |
||
22 | * @return String of parsed code. |
||
23 | */ |
||
24 | public static function handle_shortcode($arguments, $code, $parser, $shortcode, $extra = array()) |
||
35 | } |
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.