Skip to content

Commit 486a0e5

Browse files
committed
PHP: use "explicit keys" instead of "keys"
As suggested by Juliette in WordPress/WordPress-Coding-Standards#2682 (comment), every array has keys, they can be either explicitly declared or implicitly assigned by PHP. Using "explicit keys" makes the wording more precise. Follow-up to 156.
1 parent 9195adb commit 486a0e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • wordpress-coding-standards

wordpress-coding-standards/php.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Exception: if you have a block of code that would be more readable if things are
263263
[tab]$foo5 = 'somevalue4';
264264
```
265265

266-
For arrays with keys, _each item_ should start on a new line when the array contains more than one item:
266+
For arrays with explicit keys, _each item_ should start on a new line when the array contains more than one item:
267267

268268
```php
269269
$query = new WP_Query( array( 'ID' => 123 ) );

0 commit comments

Comments
 (0)