use the same requirement as doctrine/common does