mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Add slash
This commit is contained in:
parent
e60c333f2d
commit
bfe8bf523c
@ -196,7 +196,7 @@ class PartialParserVisitor extends PhpParser\NodeVisitorAbstract
|
||||
// Because we 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
|
||||
$hacky_class_fix = preg_replace_callback(
|
||||
$hacky_class_fix = \preg_replace_callback(
|
||||
'/(->|::)(\n\s*if\s*\()/',
|
||||
function (array $match) use (&$extra_characters) {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user