Skip to content

Commit 53fb980

Browse files
committed
Tiny bugfix for the doc parser
1 parent 21aed17 commit 53fb980

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/gwdg.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,10 @@ function parseDocs($docString) {
329329
$str = ltrim($str,'* ');
330330
$str = trim($str);
331331
if ($str && $str[0]==='@') {
332-
list($paramName, $paramValue) = explode(' ',substr($str,1),2);
332+
$r = explode(' ',substr($str,1),2);
333+
$paramName = $r[0];
334+
$paramValue = (count($r)>1)?$r[1]:'';
335+
333336
// 'param' paramName is special. Confusing, I know.
334337
if ($paramName==='param') {
335338
if (!isset($params['param'])) $params['param'] = array();

0 commit comments

Comments
 (0)