private function updateRepr(): void
    {
        $this->message = $this->rawMessage;

        $dot = false;
        if (mb_substr($this->message, -1) === '.') {
            $this->message = mb_substr($this->message, 0, -1);
            $dot = true;
        }

        if ($this->parsedLine >= 0) {
            $this->message .= sprintf(' at line %d', $this->parsedLine);
        }

        if ($this->snippet) {
            $this->message .= sprintf(' (near "%s")', $this->snippet);
        }

        if ($dot) {
            $this->message .= '.';
        }
    }
private function updateRepr(): void
    {
        $this->message = $this->rawMessage;

        $dot = false;
        if (mb_substr($this->message, -1) === '.') {
            $this->message = mb_substr($this->message, 0, -1);
            $dot = true;
        }

        if ($this->parsedLine >= 0) {
            $this->message .= sprintf(' at line %d', $this->parsedLine);
        }

        if ($this->snippet) {
            $this->message .= sprintf(' (near "%s")', $this->snippet);
        }

        if ($dot) {
            $this->message .= '.';
        }
    }
private function updateRepr ( ) : void { $ this -> message = $ this -> rawMessage ; $ dot = false ; if ( mb_substr ( $ this -> message , - 1 ) === '.' ) { $ this -> message = mb_substr ( $ this -> message , 0 , - 1 ) ; $ dot = true ; } if ( $ this -> parsedLine >= 0 ) { $ this -> message .= sprintf ( ' at line %d' , $ this -> parsedLine ) ; } if ( $ this -> snippet ) { $ this -> message .= sprintf ( ' (near "%s")' , $ this -> snippet ) ; } if ( $ dot ) { $ this -> message .= '.' ; } }
Sets the exception message by joining the raw message, parsed line, and snippet.
Sets the exception message by joining the raw message parsed line and snippet .