Opened 7 years ago
Closed 7 years ago
#48155 closed enhancement (fixed)
Different capitalisation in assertArrayhasKey method call
| Reported by: | david.binda | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | REST API | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description
The r46252 introduced assertArrayhasKey method call, which is capitalised differently than then rest of the calls in the same method.
157 $this->assertArrayHasKey( 'name', $properties ); 158 $this->assertArrayHasKey( 'private', $properties ); 159 $this->assertArrayHasKey( 'protected', $properties ); 160 $this->assertArrayHasKey( 'public', $properties ); 161 $this->assertArrayHasKey( 'queryable', $properties ); 162 $this->assertArrayHasKey( 'show_in_list', $properties ); 163 $this->assertArrayHasKey( 'slug', $properties ); 164 $this->assertArrayhasKey( 'date_floating', $properties );
Note the lower-case "h" in "has" on line 164, vs. capital H on the other lines. This is, obviously, not breaking anything as function names in PHP are case-insensitive, it just makes the code less readable.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 46329: