From 42b2adfeb60ff99c271f8a41357d327274578ba3 Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:13:01 +0400 Subject: [PATCH] fix(documentator): `\LastDragon_ru\LaraASP\Documentator\Processor\Tasks\CodeLinks\Task` source file path resolution. Origin: e3be7e01f03939bcf3d6fa9f4e36d19ec0925020 --- packages/documentator/src/Processor/Tasks/CodeLinks/Task.php | 2 ++ 1 file changed, 2 insertions(+) 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) {