class instanceof PhpParser\Node\Stmt\Interface_) { throw new \LogicException('Something went badly wrong'); } if ($this->class->extends) { foreach ($this->class->extends as $extended_interface) { $extended_interface_name = self::getFQCLNFromNameObject( $extended_interface, $this->getAliases() ); $parent_reference_location = new CodeLocation($this, $extended_interface); $project_checker = $this->file_checker->project_checker; if (!$project_checker->codebase->classOrInterfaceExists( $extended_interface_name, $parent_reference_location )) { // we should not normally get here return; } } } } }