phpmetrics / PhpMetrics

Beautiful and understandable static analysis tool for PHP
https://phpmetrics.github.io/website/
MIT License
2.48k stars 259 forks source link

Wrong Instability for Abstract classes with inheritance classes #507

Open KorDum opened 4 months ago

KorDum commented 4 months ago

Bug report

PhpMetrics 3.0.0rc6

If I understand correctly, Instability counts incorrectly for abstract classes with inheritors. Since the classes are abstract, we get Affererent Coupling = 0, even though the class has descendants that are explicitly linked to the abstract class. Because of this, abstract classes are placed in the zone of useless classes.

Or am I wrong?