This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
26
34
$this->variableTypes['this'] = $className;
27
}
28
34
$stmts = $node->getStmts();
29
34
if (!$stmts) {
30
4
return;
31
}
32
30
foreach ($stmts as $stmt) {
33
30
if (!($stmt instanceof Expression && $stmt->expr instanceof Assign)) {
34
30
continue;
35
}
36
6
$var = $stmt->expr->var;
37
6
$expr = $stmt->expr->expr;
38
6
if ($var instanceof Variable && $expr instanceof New_) {
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.