diff --git a/src/phpDocumentor/Reflection/DocBlock.php b/src/phpDocumentor/Reflection/DocBlock.php index ac5b6a4..5b23004 100644 --- a/src/phpDocumentor/Reflection/DocBlock.php +++ b/src/phpDocumentor/Reflection/DocBlock.php @@ -133,7 +133,7 @@ class DocBlock implements \Reflector } else { // clears all extra horizontal whitespace from the line endings // to prevent parsing issues - $comment = preg_replace('~(?m)\h*$~', '', $comment); + $comment = preg_replace('~(?m)\h*$~u', '', $comment); /* * Splits the docblock into a short description, long description and @@ -173,7 +173,7 @@ class DocBlock implements \Reflector ) )? (\s+ [\s\S]*)? # everything that follows - /', $comment, $matches + /u', $comment, $matches ); array_shift($matches); }