[UPDATE] improvement for generated classes

We must avoid inheritance from PHP classes that can't be used as parent
class (ex: DateTime)