Skip to content

Commit

Permalink
Enhancement: Extract variable
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 13, 2024
1 parent 7533af7 commit 39f2fe7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Classes/NoExtendsRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand Down

0 comments on commit 39f2fe7

Please sign in to comment.