From 0ab260a67b2b3e309763ddcd545f8afbb8105e84 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 28 Oct 2016 16:18:51 +0800 Subject: [PATCH] CodeDoc/Parser.php --- CodeDoc/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CodeDoc/Parser.php b/CodeDoc/Parser.php index 1a01a1c..895da42 100644 --- a/CodeDoc/Parser.php +++ b/CodeDoc/Parser.php @@ -386,7 +386,7 @@ class PHP_CodeDoc_Parser { * @returns false|STRING|constant */ - function look_nws($num, $stop= '') + function look_nws($num) { $dir = $num > 0 ? 1 : -1; if (!$num) { @@ -403,7 +403,7 @@ class PHP_CodeDoc_Parser { $p += $dir; continue; } - if ($stop != '' && $t == $stop) { + if (is_string($t)) { // stop on puncutation... return false; } $c++; -- 2.39.2