We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388b627 commit 212cbd2Copy full SHA for 212cbd2
src/Visitor/Php/Knp/Menu/AbstractKnpMenuVisitor.php
@@ -99,10 +99,10 @@ protected function isKnpMenuBuildingMethod(Node $node): bool
99
$returnType = $returnType->type;
100
}
101
102
- if (!$returnType instanceof Node\Name || !method_exists($returnType, 'toCodeString')) {
+ if (!$returnType instanceof Node\Name) {
103
$this->isKnpMenuBuildingMethod = false;
104
} else {
105
- $this->isKnpMenuBuildingMethod = 'ItemInterface' === $returnType->toCodeString();
+ $this->isKnpMenuBuildingMethod = 'ItemInterface' === $returnType->toString();
106
107
108
0 commit comments