1
0
Fork 0

added TODO comment for fluent interfaces

pull/419/head
Ivan Bozhanov 2017-06-19 12:53:08 +03:00
parent ec10a1ad82
commit 61c5559fb1
1 changed files with 1 additions and 0 deletions

View File

@ -574,6 +574,7 @@ class DefinitionResolver
// $this -> Type\this // $this -> Type\this
// $myVariable -> type of corresponding assignment expression // $myVariable -> type of corresponding assignment expression
if ($expr instanceof Node\Expression\Variable || $expr instanceof Node\UseVariableName) { if ($expr instanceof Node\Expression\Variable || $expr instanceof Node\UseVariableName) {
// TODO: this will need to change when fluent interfaces are supported
if ($expr->getName() === 'this') { if ($expr->getName() === 'this') {
return new Types\Object_(new Fqsen('\\' . $this->getContainingClassFqn($expr))); return new Types\Object_(new Fqsen('\\' . $this->getContainingClassFqn($expr)));
} }