From bf4d0598030b83be337bc505de842f7766009467 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Mon, 21 Sep 2020 20:41:14 +0200 Subject: 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. --- src/ste/STECore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) != ""; } -- cgit v1.2.3-70-g09d2