Lines Matching refs:stubFile
66 function processStubFile(string $stubFile, Context $context, bool $includeOnly = false): ?FileInfo { argument
68 if (!file_exists($stubFile)) {
69 throw new Exception("File $stubFile does not exist");
73 $stubFilenameWithoutExtension = str_replace(".stub.php", "", $stubFile);
77 $stubCode = file_get_contents($stubFile);
87 … $hasSpecialExitAsFunctionHandling = str_ends_with($stubFile, 'zend_builtin_functions.stub.php');
88 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
90 $stubContent = $stubCode ?? file_get_contents($stubFile);
95 $context->parsedFiles[$stubFile] = $fileInfo;
99 $prefixes = [dirname($stubFile) . "/", dirname(__DIR__) . "/"];
108 … throw new Exception("File $stubFile includes a file $dependency which does not exist");
162 echo "In $stubFile:\n{$e->getMessage()}\n";