Skip to content

Commit

Permalink
fix: function path
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jun 8, 2024
1 parent 22c840f commit 39f4865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Objects/FunctionDescription.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<mixed> $path */
$description->name = $path;
Expand Down

0 comments on commit 39f4865

Please sign in to comment.