Commit d6b79f6
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 WordPress/wordpress-develop#11151
Follow-up to r61760.
Props westonruter, johnjamesjacoby.
See #23290, #64238.
Built from https://develop.svn.wordpress.org/trunk@62028
git-svn-id: http://core.svn.wordpress.org/trunk@61310 1a063a9b-81f0-0310-95a4-ce76da25c4cdwp_cache_switch_to_blog().1 parent aa6866b commit d6b79f6
2 files changed
Lines changed: 4 additions & 4 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 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments