File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ final class FastRoute
2222 * @param class-string<Dispatcher> $dispatcher
2323 * @param class-string<ConfigureRoutes> $routesConfiguration
2424 * @param Cache|class-string<Cache>|null $cacheDriver
25+ * @param non-empty-string|null $cacheKey
2526 */
2627 private function __construct (
2728 private readonly Closure $ routeDefinitionCallback ,
@@ -34,7 +35,10 @@ private function __construct(
3435 ) {
3536 }
3637
37- /** @param Closure(ConfigureRoutes):void $routeDefinitionCallback */
38+ /**
39+ * @param Closure(ConfigureRoutes):void $routeDefinitionCallback
40+ * @param non-empty-string $cacheKey
41+ */
3842 public static function recommendedSettings (Closure $ routeDefinitionCallback , string $ cacheKey ): self
3943 {
4044 return new self (
@@ -61,7 +65,10 @@ public function disableCache(): self
6165 );
6266 }
6367
64- /** @param Cache|class-string<Cache> $driver */
68+ /**
69+ * @param Cache|class-string<Cache> $driver
70+ * @param non-empty-string $cacheKey
71+ */
6572 public function withCache (Cache |string $ driver , string $ cacheKey ): self
6673 {
6774 return new self (
You can’t perform that action at this time.
0 commit comments