* (or start line of error -- deprecated)
*/
public function __construct(string $message, $attributes = []) {
- $this->rawMessage = (string) $message;
+ $this->rawMessage = $message;
if (is_array($attributes)) {
$this->attributes = $attributes;
} else {
* @param string $message Error message
*/
public function setRawMessage(string $message) {
- $this->rawMessage = (string) $message;
+ $this->rawMessage = $message;
$this->updateMessage();
}
* @param int $line Error start line
*/
public function setStartLine(int $line) {
- $this->attributes['startLine'] = (int) $line;
+ $this->attributes['startLine'] = $line;
$this->updateMessage();
}