Repository navigation
Commit c181fea
committed
Code Quality: Remove redundant
When IPTC keywords parsing was added to `wp_read_image_metadata()`, `array_values()` was called on `$iptc['2#025']`. In PHP, `iptcparse()` returns tag arrays as zero-indexed sequential lists, so calling `array_values()` on this list has no effect and surfaces an `arrayValues.list` error in PHPStan.
This was the sole error suppressed in the `arrayValues.list` PHPStan baseline, so that baseline file is deleted along with its entry in `phpstan.neon.dist`.
Developed in WordPress#13978.
Follow-up to r34374.
Props huzaifaalmesbah.
See #65817.
git-svn-id: https://develop.svn.wordpress.org/trunk@64230 602fd350-edb4-49c9-b593-d223f7449a82array_values() call on IPTC keywords.1 parent 36e7c85 commit c181fea
3 files changed
Lines changed: 1 addition & 27 deletions
File tree
- src/wp-admin/includes
- tests/phpstan/baselines
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
922 | 922 | | |
923 | 923 | | |
924 | 924 | | |
925 | | - | |
| 925 | + | |
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
| |||
This file was deleted.
0 commit comments