From 2d26169b367af60cbc03d417c09918f50aa3b882 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 28 Apr 2020 19:29:41 +0200 Subject: Fix parser stumbling over "0" in names PHPs type juggling strikes again :( --- src/ste/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ste/Parser.php b/src/ste/Parser.php index 5e5ef0a..7226c60 100644 --- a/src/ste/Parser.php +++ b/src/ste/Parser.php @@ -89,7 +89,7 @@ class Parser { private function take_while($cb) { $s = ""; - while($c = $this->next()) { + while(($c = $this->next()) !== "") { if(!call_user_func($cb, $c)) { $this->back(); return $s; -- cgit v1.2.3-70-g09d2