File tree Expand file tree Collapse file tree 2 files changed +8
-32
lines changed Expand file tree Collapse file tree 2 files changed +8
-32
lines changed Original file line number Diff line number Diff line change 3106
3106
'count ' => 1 ,
3107
3107
'path ' => __DIR__ . '/system/Test/Mock/MockCURLRequest.php ' ,
3108
3108
];
3109
- $ ignoreErrors [] = [
3110
- 'message ' => '#^Cannot unset offset string on array \\<int, int \\> \\|null \\.$# ' ,
3111
- 'count ' => 2 ,
3112
- 'path ' => __DIR__ . '/system/Test/Mock/MockCache.php ' ,
3113
- ];
3114
- $ ignoreErrors [] = [
3115
- 'message ' => '#^Method CodeIgniter \\\\Test \\\\Mock \\\\MockCache \\: \\:assertHas \\( \\) has no return type specified \\.$# ' ,
3116
- 'count ' => 1 ,
3117
- 'path ' => __DIR__ . '/system/Test/Mock/MockCache.php ' ,
3118
- ];
3119
- $ ignoreErrors [] = [
3120
- 'message ' => '#^Method CodeIgniter \\\\Test \\\\Mock \\\\MockCache \\: \\:assertHasValue \\( \\) has no return type specified \\.$# ' ,
3121
- 'count ' => 1 ,
3122
- 'path ' => __DIR__ . '/system/Test/Mock/MockCache.php ' ,
3123
- ];
3124
- $ ignoreErrors [] = [
3125
- 'message ' => '#^Method CodeIgniter \\\\Test \\\\Mock \\\\MockCache \\: \\:assertMissing \\( \\) has no return type specified \\.$# ' ,
3126
- 'count ' => 1 ,
3127
- 'path ' => __DIR__ . '/system/Test/Mock/MockCache.php ' ,
3128
- ];
3129
- $ ignoreErrors [] = [
3130
- 'message ' => '#^Return type \\(mixed \\) of method CodeIgniter \\\\Test \\\\Mock \\\\MockCache \\: \\:get \\( \\) should be covariant with return type \\(array \\|bool \\|float \\|int \\|object \\|string \\|null \\) of method CodeIgniter \\\\Cache \\\\CacheInterface \\: \\:get \\( \\)$# ' ,
3131
- 'count ' => 2 ,
3132
- 'path ' => __DIR__ . '/system/Test/Mock/MockCache.php ' ,
3133
- ];
3134
- $ ignoreErrors [] = [
3135
- 'message ' => '#^Return type \\(mixed \\) of method CodeIgniter \\\\Test \\\\Mock \\\\MockCache \\: \\:remember \\( \\) should be covariant with return type \\(array \\|bool \\|float \\|int \\|object \\|string \\|null \\) of method CodeIgniter \\\\Cache \\\\Handlers \\\\BaseHandler \\: \\:remember \\( \\)$# ' ,
3136
- 'count ' => 1 ,
3137
- 'path ' => __DIR__ . '/system/Test/Mock/MockCache.php ' ,
3138
- ];
3139
3109
$ ignoreErrors [] = [
3140
3110
'message ' => '#^Short ternary operator is not allowed \\. Use null coalesce operator if applicable or consider using long ternary \\.$# ' ,
3141
3111
'count ' => 2 ,
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public function initialize()
54
54
*
55
55
* @param string $key Cache item name
56
56
*
57
- * @return mixed
57
+ * @return bool|null
58
58
*/
59
59
public function get (string $ key )
60
60
{
@@ -66,7 +66,7 @@ public function get(string $key)
66
66
/**
67
67
* Get an item from the cache, or execute the given Closure and store the result.
68
68
*
69
- * @return mixed
69
+ * @return bool|null
70
70
*/
71
71
public function remember (string $ key , int $ ttl , Closure $ callback )
72
72
{
@@ -266,6 +266,8 @@ public function bypass(bool $bypass = true)
266
266
* Asserts that the cache has an item named $key.
267
267
* The value is not checked since storing false or null
268
268
* values is valid.
269
+ *
270
+ * @return void
269
271
*/
270
272
public function assertHas (string $ key )
271
273
{
@@ -276,6 +278,8 @@ public function assertHas(string $key)
276
278
* Asserts that the cache has an item named $key with a value matching $value.
277
279
*
278
280
* @param mixed $value
281
+ *
282
+ * @return void
279
283
*/
280
284
public function assertHasValue (string $ key , $ value = null )
281
285
{
@@ -292,6 +296,8 @@ public function assertHasValue(string $key, $value = null)
292
296
293
297
/**
294
298
* Asserts that the cache does NOT have an item named $key.
299
+ *
300
+ * @return void
295
301
*/
296
302
public function assertMissing (string $ key )
297
303
{
You can’t perform that action at this time.
0 commit comments