Opened 9 years ago
Closed 9 years ago
#41234 closed defect (bug) (fixed)
Fix two blatant code typos
| Reported by: | jrf | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.9 |
| Component: | General | Version: | 4.9 |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
case and default statements used in a switch control structure should be followed by a : colon.
While working on an issue in the WordPress Coding Standards, I came across two typos which need to be fixed. Both use a ; semi-colon instead of a colon.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hi @jrf those might be fixed for consistency sake though semicolons are strangely allowed in switch statements: http://php.net/manual/en/control-structures.switch.php