Repository navigation
Commit 2da24ad
committed
Code Quality: Call
The `WP_Theme_JSON::process_blocks_custom_css()` method is declared static, yet three of its call sites invoked it through `$this` while the others already used `static::`. Behavior is unchanged, since both forms resolve the method with late static binding. In Gutenberg the same change, made in WordPress/gutenberg#87058, cleared the only errors of the `dynamicCallOnStaticMethod` rule from phpstan-strict-rules, so making it here keeps `WP_Theme_JSON` in sync with its Gutenberg counterpart.
Developed in #16093.
Follow-up to r55192, r58421.
Props noruzzaman, westonruter.
See #66739.
git-svn-id: https://develop.svn.wordpress.org/trunk@65770 602fd350-edb4-49c9-b593-d223f7449a82process_blocks_custom_css() statically.1 parent 5cb65d8 commit 2da24ad
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2283 | 2283 | | |
2284 | 2284 | | |
2285 | 2285 | | |
2286 | | - | |
| 2286 | + | |
2287 | 2287 | | |
2288 | 2288 | | |
2289 | 2289 | | |
| |||
4202 | 4202 | | |
4203 | 4203 | | |
4204 | 4204 | | |
4205 | | - | |
| 4205 | + | |
4206 | 4206 | | |
4207 | 4207 | | |
4208 | 4208 | | |
| |||
4534 | 4534 | | |
4535 | 4535 | | |
4536 | 4536 | | |
4537 | | - | |
| 4537 | + | |
4538 | 4538 | | |
4539 | 4539 | | |
4540 | 4540 | | |
| |||
0 commit comments