改进comment方法解析

This commit is contained in:
thinkphp
2018-04-20 16:05:51 +08:00
parent 9918d4c02a
commit 37b2d1689d

View File

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