There is in option in /packages/doctrine.yaml (actual for DBAL3. As I know, DBAL4 doesn't generate such comments):
doctrine: dbal: # ... disable_type_comments: true