PHP\Generator is now a class, and trait is renamed to Code