Skip to content

Commit 9b2abab

Browse files
Docs: Use lowercase for native PHP types in @param and @return tags.
Per the [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/ inline documentation standards], native PHP types should be written in lowercase. This commit fixes the two remaining capitalized native types in `@param` and `@return` tags in core. Developed in #13845. Props Soean. See #65860. git-svn-id: https://develop.svn.wordpress.org/trunk@64261 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 10bbb65 commit 9b2abab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/wp-includes/class-wp-term-query.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ protected function get_search_sql( $search ) {
11361136
*
11371137
* @since 4.9.8
11381138
*
1139-
* @param Object[]|int[] $terms List of objects or term ids.
1139+
* @param object[]|int[] $terms List of objects or term ids.
11401140
* @return WP_Term[] Array of `WP_Term` objects.
11411141
*/
11421142
protected function populate_terms( $terms ) {

‎src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function register_routes() {
123123
* @since 6.3.0
124124
*
125125
* @param string $raw_json Encoded JSON from global styles custom post content.
126-
* @return Array|WP_Error
126+
* @return array|WP_Error
127127
*/
128128
protected function get_decoded_global_styles_json( $raw_json ) {
129129
$decoded_json = json_decode( $raw_json, true );

0 commit comments

Comments
 (0)