From 486a0e5d0c6e408988e1832f7b88a079df3f60af Mon Sep 17 00:00:00 2001 From: Rodrigo Primo Date: Mon, 2 Feb 2026 09:47:35 -0300 Subject: [PATCH] PHP: use "explicit keys" instead of "keys" As suggested by Juliette in https://github.com/WordPress/WordPress-Coding-Standards/pull/2682#discussion_r2751118651, 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. --- wordpress-coding-standards/php.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordpress-coding-standards/php.md b/wordpress-coding-standards/php.md index 30f6410..b754ec3 100644 --- a/wordpress-coding-standards/php.md +++ b/wordpress-coding-standards/php.md @@ -263,7 +263,7 @@ Exception: if you have a block of code that would be more readable if things are [tab]$foo5 = 'somevalue4'; ``` -For arrays with keys, _each item_ should start on a new line when the array contains more than one item: +For arrays with explicit keys, _each item_ should start on a new line when the array contains more than one item: ```php $query = new WP_Query( array( 'ID' => 123 ) );