mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-17 17:47:13 +00:00
Merge pull request #4 from rvanvelzen/master
Add the u modifier to the regexes used.
This commit is contained in:
@@ -133,7 +133,7 @@ class DocBlock implements \Reflector
|
|||||||
} else {
|
} else {
|
||||||
// clears all extra horizontal whitespace from the line endings
|
// clears all extra horizontal whitespace from the line endings
|
||||||
// to prevent parsing issues
|
// 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
|
* Splits the docblock into a short description, long description and
|
||||||
@@ -173,7 +173,7 @@ class DocBlock implements \Reflector
|
|||||||
)
|
)
|
||||||
)?
|
)?
|
||||||
(\s+ [\s\S]*)? # everything that follows
|
(\s+ [\s\S]*)? # everything that follows
|
||||||
/', $comment, $matches
|
/u', $comment, $matches
|
||||||
);
|
);
|
||||||
array_shift($matches);
|
array_shift($matches);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user