Lines Matching refs:stubFile
55 function processStubFile(string $stubFile, Context $context, bool $includeOnly = false): ?FileInfo { argument
57 if (!file_exists($stubFile)) {
58 throw new Exception("File $stubFile does not exist");
62 $stubFilenameWithoutExtension = str_replace(".stub.php", "", $stubFile);
66 $stubCode = file_get_contents($stubFile);
75 if (!$fileInfo = $context->parsedFiles[$stubFile] ?? null) {
77 $fileInfo = parseStubFile($stubCode ?? file_get_contents($stubFile));
78 $context->parsedFiles[$stubFile] = $fileInfo;
82 $prefixes = [dirname($stubFile) . "/", dirname(__DIR__) . "/"];
91 … throw new Exception("File $stubFile includes a file $dependency which does not exist");
140 echo "In $stubFile:\n{$e->getMessage()}\n";