Update DepthOfInheritance.php

added cause for compability