diff --git a/packages/documentator/src/Processor/Tasks/CodeLinks/Task.php b/packages/documentator/src/Processor/Tasks/CodeLinks/Task.php index b06e96f6..7aa71937 100644 --- a/packages/documentator/src/Processor/Tasks/CodeLinks/Task.php +++ b/packages/documentator/src/Processor/Tasks/CodeLinks/Task.php @@ -110,11 +110,13 @@ public function __invoke(Directory $root, File $file): Generator { if ($paths === null) { continue; } + // File? $source = null; $paths = is_array($paths) ? $paths : [$paths]; foreach ($paths as $path) { + $path = $root->getPath()->getPath($path); $source = Cast::toNullable(File::class, yield new Optional(new FileReference($path))); if ($source !== null) {