修正parseComment方法

This commit is contained in:
thinkphp
2018-08-21 12:04:07 +08:00
parent fa2d0a9838
commit 79a096b877

View File

@@ -628,7 +628,7 @@ abstract class Builder
protected function parseComment($comment) protected function parseComment($comment)
{ {
if (false !== strpos($comment, '*/')) { if (false !== strpos($comment, '*/')) {
$comment = strstr($coment, '*/', true); $comment = strstr($comment, '*/', true);
} }
return !empty($comment) ? ' /* ' . $comment . ' */' : ''; return !empty($comment) ? ' /* ' . $comment . ' */' : '';
} }