diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-09-21 20:41:14 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-09-21 20:41:14 +0200 |
commit | bf4d0598030b83be337bc505de842f7766009467 (patch) | |
tree | fe5e29c63f76d250547f334a925d5726ec0b331e /src | |
parent | d2d7170ae27803db5d041102d2456616ca89f323 (diff) | |
download | ste-bf4d0598030b83be337bc505de842f7766009467.tar.gz ste-bf4d0598030b83be337bc505de842f7766009467.tar.bz2 ste-bf4d0598030b83be337bc505de842f7766009467.zip |
Accept non-strings in evalbool again
This broke the example page -.-. Also, the idea of STE is that it will
accept any somewhat reasonable data, so only strings was wrong here.
Diffstat (limited to 'src')
-rw-r--r-- | src/ste/STECore.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ste/STECore.php b/src/ste/STECore.php index 897a77f..a232616 100644 --- a/src/ste/STECore.php +++ b/src/ste/STECore.php @@ -307,11 +307,11 @@ class STECore /** * Test, if a text represents false (an empty / only whitespace text) or true (everything else). * - * @param string $txt The text to test. + * @param mixed $txt The text to test. * * @return bool */ - public function evalbool(string $txt): bool + public function evalbool($txt): bool { return trim(@(string)$txt) != ""; } |