Skip to content

Commit ca1e144

Browse files
committed
Revert "Fix generate-function-metadata.php script"
This reverts commit 14a3b36.
1 parent 338d6f9 commit ca1e144

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

bin/generate-function-metadata.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,8 @@ public function enterNode(Node $node)
6969
$traverser->addVisitor(new NodeConnectingVisitor());
7070
$traverser->addVisitor($visitor);
7171

72-
$contents = FileReader::read($path);
73-
if (str_ends_with($path, '/vendor/jetbrains/phpstorm-stubs/Core/Core.php')) {
74-
$contents = str_replace([
75-
'function exit',
76-
'function die',
77-
], [
78-
'function _exit',
79-
'function _die',
80-
], $contents);
81-
}
82-
8372
$traverser->traverse(
84-
$parser->parse($contents),
73+
$parser->parse(FileReader::read($path)),
8574
);
8675
}
8776

0 commit comments

Comments
 (0)