public function __toString() { if (!$this->srcFile || $this->is_src_accurate) { return parent::__toString(); } return "From {$this->srcFile} around line {$this->srcLine}\n" . parent::__toString(); }
public function __toString() { if (empty($this->srcFile)) { return parent::__toString(); } $res = sprintf('From %s around line %d' . "\n", $this->srcFile, $this->srcLine); $res .= parent::__toString(); return $res; }