diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-09-13 22:25:15 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-09-13 22:25:15 +0200 |
commit | 76a1e915e0eea54b9b9a01d921efa6f9edffb3a8 (patch) | |
tree | 2d3140702e971cbe492561fea0f2d4c512366c07 /src/ste/Misc.php | |
parent | 2bbb1646f56fe84f38ed2a0cba03a386acc6160e (diff) | |
download | ste-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/Misc.php')
-rw-r--r-- | src/ste/Misc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ste/Misc.php b/src/ste/Misc.php index 330b3d2..7118b28 100644 --- a/src/ste/Misc.php +++ b/src/ste/Misc.php @@ -8,7 +8,7 @@ class Misc * @param string $text * @return string */ - public static function escape_text($text) + public static function escape_text(string $text): string { return addcslashes($text, "\r\n\t\$\0..\x1f\\\"\x7f..\xff"); } |