mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
[cs] finalize, spaces, concat and strict comparison
This commit is contained in:
committed by
Jaap van Otterdijk
parent
833126e6a3
commit
5ff9ca38c5
@@ -120,7 +120,7 @@ final class DocBlockFactory implements DocBlockFactoryInterface
|
||||
$comment = trim(preg_replace('#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#u', '$1', $comment));
|
||||
|
||||
// reg ex above is not able to remove */ from a single line docblock
|
||||
if (substr($comment, -2) == '*/') {
|
||||
if (substr($comment, -2) === '*/') {
|
||||
$comment = trim(substr($comment, 0, -2));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user