$classDeprecation = $class->getDeprecatedDescription(); if($classDeprecation && !$this->handlesDeprecationCorrectly($classDeprecation, $methodContent)){ return[ \sprintf( 'Class "%s" is marked as deprecated, but method "%s" does not call "Feature::triggerDeprecationOrThrow". All public methods of deprecated classes need to trigger a deprecation warning.',