1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix single line detection bug (found by Psalm!)

This commit is contained in:
Matthew Brown 2018-01-07 13:12:25 -05:00
parent aa3f60bad1
commit 5d259dbd1e

View File

@ -159,6 +159,11 @@ class FunctionDocblockManipulator
$in_multi_line_comment = true;
++$i;
}
if ($chars[$i + 1] === '/') {
$in_single_line_comment = true;
++$i;
}
continue;
case '*':