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);
86 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
88 $stubContent = $stubCode ?? file_get_contents($stubFile);
90 $context->parsedFiles[$stubFile] = $fileInfo;
94 $prefixes = [dirname($stubFile) . "/", dirname(__DIR__) . "/"];
103 … throw new Exception("File $stubFile includes a file $dependency which does not exist");
154 echo "In $stubFile:\n{$e->getMessage()}\n";