From 39f4865f6852141462d98580a9e2ad52d233eec2 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sat, 8 Jun 2024 20:39:48 +0100 Subject: [PATCH] fix: function path --- src/Objects/FunctionDescription.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Objects/FunctionDescription.php b/src/Objects/FunctionDescription.php index dc6fd1d..b1e9398 100644 --- a/src/Objects/FunctionDescription.php +++ b/src/Objects/FunctionDescription.php @@ -20,7 +20,7 @@ public static function make(string $path): self { $description = new self(); - $description->path = $path; + $description->path = (new ReflectionFunction($path))->getFileName(); /** @var class-string $path */ $description->name = $path;