public function getLine($filename, $line, $context = 2) { if (!$this->filesystem->exists($filename)) { throw new \RuntimeException('File not found: ' . $filename); } $file = $this->filesystem->getFile($filename); return $file->getLine($line, $context); }