mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 05:34:54 +00:00
Fixed #2110
This commit is contained in:
parent
d2fb32c28a
commit
c19cf22ac5
@ -720,7 +720,7 @@ class PluginManager{
|
||||
*/
|
||||
public static function parseDocComment(string $docComment) : array{
|
||||
preg_match_all('/^[\t ]*\* @([a-zA-Z]+)(?:[\t ]+(.+))?[\t ]*$/m', $docComment, $matches);
|
||||
return array_combine($matches[1], $matches[2]);
|
||||
return array_combine($matches[1], array_map("trim", $matches[2]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user