Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Feb 15, 2021
1 parent a115d31 commit 472fbf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Psalm/Internal/PhpVisitor/PartialParserVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ public function enterNode(PhpParser\Node $node, &$traverseChildren = true)
// Foo::;
// if (...) {}
//
// Because when insert the extra colon we have to keep track of the places
// we inserted it, and then shift the file offsets accordingly after
// parsing has been done
// Because when insert the extra semicolon we have to keep track of the places
// we inserted it, and then shift the AST node offsets accordingly after parsing
// is complete.
$hacky_class_fix = \preg_replace_callback(
'/(->|::)(\n\s*if\s*\()/',
function (array $match) use (&$extra_characters) {
Expand Down

0 comments on commit 472fbf7

Please sign in to comment.