Referencing a file defining a trait in .info in Drupal 7 gives:

 6 | ERROR | It's only necessary to declare files[] if they declare a
   |       | class or interface.

Yes, the D7 code registry does support traits, and it is necessary to declare them in .info.

Comments

mikeryan created an issue. See original summary.

  • klausi committed 4eefe23 on 8.x-2.x
    Issue #2667774: Allow trait file references in .info files
    
klausi’s picture

Status: Active » Fixed

Pushed a fix, thanks for reporting!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.