Repository navigation
Commit eb7356b
committed
Code Quality: Fix the
`$parent_file` is hard-coded to the string `'themes.php'` earlier in this
file and never reassigned, so `empty( $parent_file )` can never be true.
Drop the always-false clause; the condition reduces to the half that was
actually reachable.
This also removes the file's only reference to $self, which was never
defined, retiring its `variable.undefined` baseline entry as well.
See #65817.booleanAnd.alwaysFalse PHPStan error and remove the baseline.1 parent 21e4da0 commit eb7356b
4 files changed
Lines changed: 1 addition & 34 deletions
File tree
- src/wp-admin
- tests/phpstan/baselines
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | | - | |
378 | | - | |
| 376 | + | |
379 | 377 | | |
380 | 378 | | |
381 | 379 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | 401 | | |
407 | 402 | | |
408 | 403 | | |
| |||
0 commit comments