diff options
Diffstat (limited to 'src/ste/ParseCompileError.php')
-rw-r--r-- | src/ste/ParseCompileError.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ste/ParseCompileError.php b/src/ste/ParseCompileError.php index 0d5a240..bc0c252 100644 --- a/src/ste/ParseCompileError.php +++ b/src/ste/ParseCompileError.php @@ -24,7 +24,7 @@ class ParseCompileError extends \Exception * Update the message to include a human readable offset. * @param string $code */ - public function rewrite($code) + public function rewrite(string $code): void { $line = substr_count(str_replace("\r\n", "\n", substr($code, 0, $this->off)), "\n") + 1; $this->message = "{$this->msg} (Template {$this->tpl}, Line $line)"; |