phptools-docs
phptools-docs copied to clipboard
Show and remove unused constructor-based dependency injections (DI)
Hello,
I'd love to have a feature where it shows and is able to remove unused constructor-based dependency injections (DI).
For example:
public function __construct(
private readonly \Some\Class $someClass,
) {
}
If $this->someClass is nowhere found in the code, I'd like to have some "this DI is not used, do you want to remove?"-Feature.
There's a feature for "Remove Unused Uses" and that would be great for the DI stuff as well. 😊
Good idea!