|
2 | 2 |
|
3 | 3 | namespace Config; |
4 | 4 |
|
| 5 | +use CodeIgniter\Cache\CacheInterface; |
5 | 6 | use CodeIgniter\Cache\Handlers\DummyHandler; |
6 | 7 | use CodeIgniter\Cache\Handlers\FileHandler; |
7 | 8 | use CodeIgniter\Cache\Handlers\MemcachedHandler; |
@@ -53,12 +54,12 @@ class Cache extends BaseConfig |
53 | 54 | * Whether to take the URL query string into consideration when generating |
54 | 55 | * output cache files. Valid options are: |
55 | 56 | * |
56 | | - * false = Disabled |
57 | | - * true = Enabled, take all query parameters into account. |
58 | | - * Please be aware that this may result in numerous cache |
59 | | - * files generated for the same page over and over again. |
60 | | - * array('q') = Enabled, but only take into account the specified list |
61 | | - * of query parameters. |
| 57 | + * false = Disabled |
| 58 | + * true = Enabled, take all query parameters into account. |
| 59 | + * Please be aware that this may result in numerous cache |
| 60 | + * files generated for the same page over and over again. |
| 61 | + * ['q'] = Enabled, but only take into account the specified list |
| 62 | + * of query parameters. |
62 | 63 | * |
63 | 64 | * @var bool|string[] |
64 | 65 | */ |
@@ -95,7 +96,8 @@ class Cache extends BaseConfig |
95 | 96 | * A string of reserved characters that will not be allowed in keys or tags. |
96 | 97 | * Strings that violate this restriction will cause handlers to throw. |
97 | 98 | * Default: {}()/\@: |
98 | | - * Note: The default set is required for PSR-6 compliance. |
| 99 | + * |
| 100 | + * NOTE: The default set is required for PSR-6 compliance. |
99 | 101 | */ |
100 | 102 | public string $reservedCharacters = '{}()/\@:'; |
101 | 103 |
|
@@ -157,6 +159,7 @@ class Cache extends BaseConfig |
157 | 159 | * that are listed here are allowed to be used. |
158 | 160 | * |
159 | 161 | * @var array<string, string> |
| 162 | + * @phpstan-var array<string, class-string<CacheInterface>> |
160 | 163 | */ |
161 | 164 | public array $validHandlers = [ |
162 | 165 | 'dummy' => DummyHandler::class, |
|
0 commit comments