File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222use Windwalker \Cache \Storage \PhpFileStorage ;
2323use Windwalker \Cache \Storage \StorageInterface ;
2424use Windwalker \Promise \Promise ;
25+ use Windwalker \Promise \PromiseInterface ;
2526use Windwalker \Utilities \Assert \ArgumentsAssert ;
2627
2728/**
@@ -464,14 +465,16 @@ public function call(
464465 * ])->then(fn(array $values) => useValues($values))->wait();
465466 *
466467 * @psalm-param callable(CacheItem): mixed $handler
468+ *
469+ * @return Promise
467470 */
468471 public function fetchAsync (
469472 string $ key ,
470473 callable $ handler ,
471474 DateInterval |int |null $ ttl = null ,
472475 float $ beta = 1.0 ,
473476 bool $ lock = true ,
474- ): Promise {
477+ ): PromiseInterface {
475478 if (!class_exists (Promise::class)) {
476479 throw new \DomainException ('Please install `windwalker/promise` to use fetchAsync(). ' );
477480 }
You can’t perform that action at this time.
0 commit comments