Beispiel #1
0
 public function __toString()
 {
     if (!$this->srcFile || $this->is_src_accurate) {
         return parent::__toString();
     }
     return "From {$this->srcFile} around line {$this->srcLine}\n" . parent::__toString();
 }
Beispiel #2
0
 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;
 }