diff --git a/src/Classes/NoExtendsRule.php b/src/Classes/NoExtendsRule.php index ecbdd4c6..beb050cf 100644 --- a/src/Classes/NoExtendsRule.php +++ b/src/Classes/NoExtendsRule.php @@ -81,9 +81,11 @@ public function processNode( ]; } + $extendingClassName = $node->namespacedName->toString(); + $message = \sprintf( 'Class "%s" is not allowed to extend "%s".', - $node->namespacedName->toString(), + $extendingClassName, $extendedClassName, );