We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc90409 commit 8ef28f6Copy full SHA for 8ef28f6
extractor/extract.php
@@ -251,6 +251,15 @@ public function clear(): void
251
if ($stubContents === false) {
252
throw new \LogicException('Could not read stub');
253
}
254
+ if (str_ends_with($stubPath, '/Zend/zend_builtin_functions.stub.php')) {
255
+ $stubContents = str_replace([
256
+ 'function exit',
257
+ 'function die',
258
+ ], [
259
+ 'function _exit',
260
+ 'function _die',
261
+ ], $stubContents);
262
+ }
263
$ast = $this->parser->parse($stubContents);
264
if ($ast === null) {
265
throw new \LogicException('AST cannot be null');
0 commit comments