Mercurial > hg > isophonics-drupal-site
diff vendor/nikic/php-parser/lib/PhpParser/Error.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 5fb285c0d0e3 |
children |
line wrap: on
line diff
--- a/vendor/nikic/php-parser/lib/PhpParser/Error.php Thu Apr 26 11:26:54 2018 +0100 +++ b/vendor/nikic/php-parser/lib/PhpParser/Error.php Tue Jul 10 15:07:59 2018 +0100 @@ -15,7 +15,7 @@ * (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 { @@ -76,7 +76,7 @@ * @param string $message Error message */ public function setRawMessage(string $message) { - $this->rawMessage = (string) $message; + $this->rawMessage = $message; $this->updateMessage(); } @@ -86,7 +86,7 @@ * @param int $line Error start line */ public function setStartLine(int $line) { - $this->attributes['startLine'] = (int) $line; + $this->attributes['startLine'] = $line; $this->updateMessage(); }