Skip to content

Commit 34171b1

Browse files
committed
Fixed a bug where function target would output namespace\function::function instead of namespace\function.
1 parent 56c19d2 commit 34171b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/PHPSemVerChecker/Node/Statement/Function_.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
class Function_ {
88
public static function getFullyQualifiedName(BaseFunction $function)
99
{
10-
$fqfn = '';
1110
if ($function->namespacedName) {
12-
$fqfn = $function->namespacedName->toString() . '::';
11+
return $function->namespacedName->toString();
1312
}
14-
return $fqfn . $function->name;
13+
return $function->name;
1514
}
1615
}

0 commit comments

Comments
 (0)