Repository navigation
Commit 0527680
committed
Code Quality: Add types for term insert/update/delete functions.
Add PHPStan array shapes for the `$args` parameter of `wp_insert_term()`, `wp_update_term()`, and `wp_delete_term()`, along with narrowed return types. The types describe the contract these functions are intended to be called with, rather than what unguarded callers happen to pass today.
Developed in WordPress#12465.
Follow-up to r62680.
See #64898.
git-svn-id: https://develop.svn.wordpress.org/trunk@62682 602fd350-edb4-49c9-b593-d223f7449a821 parent e8f519d commit 0527680
1 file changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2047 | 2047 | | |
2048 | 2048 | | |
2049 | 2049 | | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
2050 | 2056 | | |
2051 | 2057 | | |
2052 | 2058 | | |
| |||
2437 | 2443 | | |
2438 | 2444 | | |
2439 | 2445 | | |
| 2446 | + | |
| 2447 | + | |
| 2448 | + | |
| 2449 | + | |
| 2450 | + | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
2440 | 2457 | | |
2441 | 2458 | | |
2442 | 2459 | | |
| |||
2622 | 2639 | | |
2623 | 2640 | | |
2624 | 2641 | | |
| 2642 | + | |
2625 | 2643 | | |
2626 | 2644 | | |
2627 | 2645 | | |
| |||
3229 | 3247 | | |
3230 | 3248 | | |
3231 | 3249 | | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
3232 | 3261 | | |
3233 | 3262 | | |
3234 | 3263 | | |
| |||
0 commit comments