Fix missing return statements on variant()
Bump composer version