Skip to content

Commit 6d46982

Browse files
committed
fix: match correct parameter with generic type
fixes #606
1 parent b2848d3 commit 6d46982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getArray(string $name, callable $callback, int $secondsValid = s
7676

7777
/**
7878
* @template T
79-
* @param class-string<T> $name
79+
* @param class-string<T> $className
8080
* @return T
8181
*/
8282
public function getInstance(string $name, string $className, callable $callback, int $secondsValid = self::DEFAULT_SECONDS_VALID):object {

0 commit comments

Comments
 (0)