| 1 | <?php |
||
| 12 | class FooGallery_Extensions_Compatibility { |
||
|
|
|||
| 13 | |||
| 14 | function __construct() { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param $classes |
||
| 20 | * @param $foogallery_attachment |
||
| 21 | * @param $args |
||
| 22 | * |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | public function add_video_class_to_item( $classes, $foogallery_attachment, $args ) { |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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.