public function __construct($message, $attributes = array()) { $this->rawMessage = (string) $message; if (is_array($attributes)) { $this->attributes = $attributes; } else { $this->attributes = array('startLine' => $attributes); } $this->updateMessage(); }
/** * Constructor! * * @param string $message (default: "") * @param int $line (default: -1) */ public function __construct($message = '', $line = -1) { $message = sprintf('PHP Parse error: %s', $message); parent::__construct($message, $line); }