1
0
Fork 0

revert isClass -> canBeInstantiated

- ensures consistency w/ old parser
pull/357/head
Sara Itani 2017-04-10 12:29:58 -07:00
parent 7d68e3acc3
commit fa52aef28a
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class TolerantDefinitionResolver implements DefinitionResolverInterface
// this determines whether the suggestion will show after "new" // this determines whether the suggestion will show after "new"
// TODO name // TODO name
$def->isClass = $node instanceof Tolerant\Node\Statement\ClassDeclaration; $def->canBeInstantiated = $node instanceof Tolerant\Node\Statement\ClassDeclaration;
$def->isGlobal = ( $def->isGlobal = (
$node instanceof Tolerant\Node\Statement\InterfaceDeclaration $node instanceof Tolerant\Node\Statement\InterfaceDeclaration