Both of them are correct.
Methane is an explosion hazard in enclosed areas. Liquefied Methane floats on water and boils. The vapor cloud produced is FLAMMABLE
In landfills, the food and yard waste that trash contains is decomposing and releasing methane, a greenhouse gas that's 28 times more potent than carbon dioxide.