We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 371422b commit 23f4b93Copy full SHA for 23f4b93
1 file changed
build/gen_stub.php
@@ -84,7 +84,7 @@ function processStubFile(string $stubFile, Context $context, bool $includeOnly =
84
}
85
86
/* Because exit() and die() are proper token/keywords we need to hack-around */
87
- $hasSpecialExitAsFunctionHandling = str_ends_with($stubFile, 'zend_builtin_functions.stub.php');
+ $hasSpecialExitAsFunctionHandling = basename($stubFile) == 'zend_builtin_functions.stub.php';
88
if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
89
initPhpParser();
90
$stubContent = $stubCode ?? file_get_contents($stubFile);
0 commit comments