summaryrefslogtreecommitdiff
path: root/src/ste/ParseCompileError.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-13 22:25:15 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-13 22:25:15 +0200
commit76a1e915e0eea54b9b9a01d921efa6f9edffb3a8 (patch)
tree2d3140702e971cbe492561fea0f2d4c512366c07 /src/ste/ParseCompileError.php
parent2bbb1646f56fe84f38ed2a0cba03a386acc6160e (diff)
downloadste-76a1e915e0eea54b9b9a01d921efa6f9edffb3a8.tar.gz
ste-76a1e915e0eea54b9b9a01d921efa6f9edffb3a8.tar.bz2
ste-76a1e915e0eea54b9b9a01d921efa6f9edffb3a8.zip
Code cleanup
- Add parameter and return types - Add missing @throws tags - Add visibilities to consts
Diffstat (limited to 'src/ste/ParseCompileError.php')
-rw-r--r--src/ste/ParseCompileError.php2
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)";