Opened 5 years ago
Closed 5 years ago
#48155 closed enhancement (fixed)
Different capitalisation in assertArrayhasKey method call
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | REST API | Keywords: | has-patch |
Focuses: | Cc: |
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.
In 46329: