I've noticed this problem in many cases in PHP files - PhpStorm sometimes uses some weird algorithm for detecting and marking unused object properties and the results become meaningless. For example:
As you can see some properties look normal while some are in grey colour meaning "Unused element: ...". The problem is that none of these properties are used anywhere, this is a new class not yet used in the project. Then why are some properties marked as used and others not? My guess is that names like name, city, postcode and street might be the names of used properties in other classes. Trying to find usages on a supposedly used properties gives this result:
This is not a critical feature for me but to be honest I'd prefer PhpStorm not to mark any properties as unused instead of trying to do it in such an erroneous way because this ends up in a complete mess. Is there any way to remedy this?