Right now, the Crawler will return any class-like file, including traits and abstract classes.
This means (for instance) if an abstract class implements an interface, and is the first file found by the Electrician, the plugin will try to inject the abstract class into the Service Provider.
As traits and abstract classes are basically never valid targets for autowiring or configuring, they should probably be filtered out.
Right now, the
Crawler
will return any class-like file, including traits and abstract classes.This means (for instance) if an abstract class implements an interface, and is the first file found by the
Electrician
, the plugin will try to inject the abstract class into the Service Provider.As traits and abstract classes are basically never valid targets for autowiring or configuring, they should probably be filtered out.