Commit 6f20911
committed
Cache API: Address code quality issues with
This addresses 3 PHPStan errors at rule level 8:
* `arguments.count`: Function `wp_cache_switch_to_blog_fallback()` invoked with 1 parameter, 0 required.
* `method.nonObject`: Cannot call method `switch_to_blog()` on `class-string|object`.
* `missingType.return`: Function `wp_cache_switch_to_blog()` has no return type specified.
Developed as subset of #11151
Follow-up to r61760.
Props westonruter, johnjamesjacoby.
See #23290, #64238.
git-svn-id: https://develop.svn.wordpress.org/trunk@62028 602fd350-edb4-49c9-b593-d223f7449a82wp_cache_switch_to_blog().1 parent 6dac3b4 commit 6f20911
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
0 commit comments