[wp-trac] [WordPress Trac] #48155: Different capitalisation in assertArrayhasKey method call
WordPress Trac
noreply at wordpress.org
Thu Sep 26 16:02:30 UTC 2019
#48155: Different capitalisation in assertArrayhasKey method call
-------------------------+-----------------------------
Reporter: david.binda | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: trivial | Keywords:
Focuses: |
-------------------------+-----------------------------
The r46252 introduced `assertArrayhasKey` method call, which is
capitalised differently than then rest of the calls in the same method.
{{{#!php
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48155>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list