Skip to content

Commit

Permalink
Fix: Issues detected via static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jul 31, 2020
1 parent a5cef37 commit 5eee1ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Classes/FinalRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function processNode(Node $node, Scope $scope): array
return [
\sprintf(
$this->errorMessageTemplate,
$node->namespacedName
$node->namespacedName->toString()
),
];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/NoExtendsRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function processNode(Node $node, Scope $scope): array
return [
\sprintf(
'Class "%s" is not allowed to extend "%s".',
$node->namespacedName,
$node->namespacedName->toString(),
$extendedClassName
),
];
Expand Down
2 changes: 1 addition & 1 deletion src/Functions/NoNullableReturnTypeDeclarationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function processNode(Node $node, Scope $scope): array
return [
\sprintf(
'Function %s() has a nullable return type declaration.',
$node->namespacedName
$node->namespacedName->toString()
),
];
}
Expand Down

0 comments on commit 5eee1ce

Please sign in to comment.