fixed phpdoc command.

fixed Markdown::process() to make it compatible with parent declaration.
This commit is contained in:
Qiang Xue
2014-01-11 17:33:48 -05:00
parent d6eeab2ff3
commit 135f06413a
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ class Markdown extends \yii\helpers\Markdown
* @param TypeDoc $context
* @return string
*/
public static function process($content, $context)
public static function process($content, $context = null)
{
$content = trim(parent::process($content, []));
if (!strncmp($content, '<p>', 3) && substr($content, -4, 4) == '</p>') {
@ -77,4 +77,4 @@ class Markdown extends \yii\helpers\Markdown
return $content;
}
}
}