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:
parent
aa3f60bad1
commit
5d259dbd1e
@ -159,6 +159,11 @@ class FunctionDocblockManipulator
|
||||
$in_multi_line_comment = true;
|
||||
++$i;
|
||||
}
|
||||
|
||||
if ($chars[$i + 1] === '/') {
|
||||
$in_single_line_comment = true;
|
||||
++$i;
|
||||
}
|
||||
continue;
|
||||
|
||||
case '*':
|
||||
|
Loading…
Reference in New Issue
Block a user