Fixing the other RegExes as well since they were also not using the u modifier

This commit is contained in:
Mike van Riel
2012-07-13 20:07:51 +02:00
parent 33a2e55cbc
commit 2b05ea3221
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ class DocBlock implements \Reflector
{ {
$comment = trim( $comment = trim(
preg_replace( preg_replace(
'#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#', '$1', $comment '#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#u', '$1', $comment
) )
); );
@@ -35,7 +35,7 @@ class LongDescription implements \Reflector
*/ */
public function __construct($content) public function __construct($content)
{ {
if (preg_match('/\{\@(.+?)\}/', $content, $matches)) { if (preg_match('/\{\@(.+?)\}/u', $content, $matches)) {
array_shift($matches); array_shift($matches);
foreach ($matches as $tag) { foreach ($matches as $tag) {
$this->tags[] = Tag::createInstance('@' . $tag); $this->tags[] = Tag::createInstance('@' . $tag);