Dependency Injection: Generic type hint should be added to `ServicesTrait::getService()`
Closed this issue · 0 comments
passchn commented
The return type can be inferred from the given class-string, so that the IDE knows that object is returned.
Also, it would be nice to throw a useful exception if the getService
method is called in the Task's constructor.
A PR is coming in a minute. :)