@stloyd updated code. both constants were introduced in 5.4, so there's no need to check them separately. also this is the way symphony\console does, apparently.