diff --git a/src/phpDocumentor/Reflection/DocBlock.php b/src/phpDocumentor/Reflection/DocBlock.php index 5b23004..a3e07a1 100644 --- a/src/phpDocumentor/Reflection/DocBlock.php +++ b/src/phpDocumentor/Reflection/DocBlock.php @@ -99,7 +99,7 @@ class DocBlock implements \Reflector { $comment = trim( preg_replace( - '#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#', '$1', $comment + '#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#u', '$1', $comment ) ); diff --git a/src/phpDocumentor/Reflection/DocBlock/LongDescription.php b/src/phpDocumentor/Reflection/DocBlock/LongDescription.php index 1549edc..8c068db 100644 --- a/src/phpDocumentor/Reflection/DocBlock/LongDescription.php +++ b/src/phpDocumentor/Reflection/DocBlock/LongDescription.php @@ -35,7 +35,7 @@ class LongDescription implements \Reflector */ public function __construct($content) { - if (preg_match('/\{\@(.+?)\}/', $content, $matches)) { + if (preg_match('/\{\@(.+?)\}/u', $content, $matches)) { array_shift($matches); foreach ($matches as $tag) { $this->tags[] = Tag::createInstance('@' . $tag);