backport Completions to php 5.3 by replacing traits