Skip to content

Commit 945bccf

Browse files
committed
add phpstan-prefix
1 parent 133a54f commit 945bccf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Node/Printer/Printer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,22 @@ protected function pPHPStan_Node_BooleanAndNode(BooleanAndNode $expr): string //
140140

141141
protected function pPHPStan_Node_FunctionCallableNode(FunctionCallableNode $expr): string // phpcs:ignore
142142
{
143-
return $this->p($expr->getOriginalNode());
143+
return sprintf('__phpstanFunctionCallable(%s)', $this->p($expr->getOriginalNode()));
144144
}
145145

146146
protected function pPHPStan_Node_MethodCallableNode(MethodCallableNode $expr): string // phpcs:ignore
147147
{
148-
return $this->p($expr->getOriginalNode());
148+
return sprintf('__phpstanMethodCallable(%s)', $this->p($expr->getOriginalNode()));
149149
}
150150

151151
protected function pPHPStan_Node_StaticMethodCallableNode(StaticMethodCallableNode $expr): string // phpcs:ignore
152152
{
153-
return $this->p($expr->getOriginalNode());
153+
return sprintf('__phpstanStaticMethodCallable(%s)', $this->p($expr->getOriginalNode()));
154154
}
155155

156156
protected function pPHPStan_Node_InstantiationCallableNode(InstantiationCallableNode $expr): string // phpcs:ignore
157157
{
158-
return $this->p($expr->getOriginalNode());
158+
return sprintf('__phpstanInstantiationCallable(%s)', $this->p($expr->getOriginalNode()));
159159
}
160160

161161
}

0 commit comments

Comments
 (0)