1 | <?php |
||
8 | class FooGallery_Animated_Gif_Support { |
||
|
|||
9 | |||
10 | /** |
||
11 | * FooGallery_Animated_Gif_Support constructor. |
||
12 | */ |
||
13 | function __construct() { |
||
16 | |||
17 | /** |
||
18 | * Checks if the thumb we are using is an animated GIF. If so, return the original image so that the thumb is also animated |
||
19 | * |
||
20 | * @param array $args |
||
21 | * @param string $original_image_src |
||
22 | * @param FooGalleryAttachment $thumbnail_object |
||
23 | * |
||
24 | * @return array |
||
25 | */ |
||
26 | function support_for_animations( $args, $original_image_src, $thumbnail_object ) { |
||
38 | } |
||
39 | } |
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.