This is how ice wedging works. When liquid water changes into solid ice, it increases in volume. You see this when you fill an ice cube tray with water and put it in the freezer. The ice cubes go to a higher level in the tray than the water. You also may have seen this if you put a can of soda into the freezer so that it cools down quickly. If you leave the can in the freezer too long, the liquid expands so much that it bends or pops the can. (For the record, water is very unusual. Most substances get smaller when they change from a liquid to a solid.)
Mark hurried in from the cold he had gone shopping for all the supplies he needed for his big Christmas party. He opened the trunk and sat 2 cases of beer in the garage while he carried the food into the kitchen.  Bob put the food away and started dinner. When Mark went out to the garage the next morning he saw that the beer can's had exploded and there was beer everywhere.
Did heat or cold increase the pressure in the cans?