Opened 11 hours ago
Last modified 11 hours ago
#66155 new enhancement
This change removes redundant strict comparisons flagged by PHPStan and simplifies the affected conditions.
| Reported by: | arshidkv12 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
WP_Links_List_Table: Check$cat_idagainst0instead of comparing it with the string'all'.wp_get_layout_style(): Check for an empty string aftertrim()instead of checking againstnull.WP_Rewrite: Simplifyarray_search()result checks by testing only againstfalse;array_search()does not returnnull.- PHPStan baseline: Remove the corresponding
notIdentical.alwaysTruesuppressions that are no longer needed.
This is a cleanup-only change with no intended behavioral change.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)