WordPress/wp-includes/rest-api
Sergey Biryukov 7a78121aa0 Coding Standards: Explicitly return `null` instead of coercing `void`.
This addresses two instances where a function that is documented as returning `{someType}|null` doesn't explicitly return `null`.

Affected functions:
* `array_key_first()`
* `WP_REST_Posts_Controller::handle_terms()`

Follow-up to [38832], [52038].

Props justlevine.
See #52217.
Built from https://develop.svn.wordpress.org/trunk@59453


git-svn-id: http://core.svn.wordpress.org/trunk@58839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-22 19:19:20 +00:00
..
endpoints Coding Standards: Explicitly return `null` instead of coercing `void`. 2024-11-22 19:19:20 +00:00
fields Meta: Add label argument to register_meta function 2024-09-16 11:33:38 +00:00
search REST API: Remove post status prefix from REST API responses. 2024-07-23 07:51:12 +00:00
class-wp-rest-request.php Docs: Fix typos in various REST API DocBlocks and comments. 2024-07-11 06:24:17 +00:00
class-wp-rest-response.php
class-wp-rest-server.php REST API: Automatically populate targetHints for the Allow header. 2024-09-17 21:52:20 +00:00