XF 2.2 What knows phpStorm?

Robert9

Well-known member
Licensed customer
At the moment I watch a file

Code:
namespace XR\PM\Searcher;

use XF\Mvc\Entity\Entity;
use XF\Mvc\Entity\Finder;
use XF\Mvc\Entity\Manager;
use XF\Searcher\AbstractSearcher;

phpStorm says that

Code:
use XF\Mvc\Entity\Entity;
use XF\Mvc\Entity\Finder;
use XF\Mvc\Entity\Manager;

are not used.

Can I trust the software and delete that?
Why the coder has not done?

It is not about changing files of others, but to know about this.
Sometimes, when i extend a class, i have to add some things to use, sometimes not.
I try to understand why, when, what ...
 
It seems to me that functions used in templates only are not shown as used.
You're right and if those templates need attributes/functions on those includes, then they might fail. Keep an eye on them.
 
Back
Top Bottom