1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add slash

This commit is contained in:
Matt Brown 2021-02-15 11:13:50 -05:00
parent e60c333f2d
commit bfe8bf523c

View File

@ -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) {
/**