Skip to content

Commit 2118a50

Browse files
authored
Fix return types in Facade PHPDoc for clear() and forget() (spatie#505)
- `clear()`: returns `bool` but PHPDoc said `void` - `forget()`: returns `self` (ResponseCache) but PHPDoc said `void` - Also renamed `$key` to `$uris` in forget() to match actual signature
1 parent 2461c17 commit 2118a50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Facades/ResponseCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use Illuminate\Support\Facades\Facade;
66

77
/**
8-
* @method static void clear(array $tags = [])
9-
* @method static void forget(string|array $key, array $tags = [])
8+
* @method static bool clear(array $tags = [])
9+
* @method static \Spatie\ResponseCache\ResponseCache forget(string|array $uris, array $tags = [])
1010
* @method static bool enabled(\Illuminate\Http\Request $request)
1111
* @method static bool shouldCache(\Illuminate\Http\Request $request, \Symfony\Component\HttpFoundation\Response $response)
1212
* @method static bool shouldBypass(\Illuminate\Http\Request $request)

0 commit comments

Comments
 (0)