Skip to content

Commit ce3c55a

Browse files
committed
Docs: Use object shape notation for return type
Apply @westonruter's suggestion to use object shape notation for wp_get_media_library_months_with_files() return type, with string types matching the actual wpdb query output.
1 parent 52a87d6 commit ce3c55a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5157,7 +5157,7 @@ function wp_enqueue_media( $args = array() ) {
51575157
*
51585158
* @global wpdb $wpdb WordPress database abstraction object.
51595159
*
5160-
* @return stdClass[] Array of objects with `month` and `year` properties.
5160+
* @return array<int, object{year: string, month: string}> Array of objects with `month` and `year` properties.
51615161
*/
51625162
function wp_get_media_library_months_with_files(): array {
51635163
global $wpdb;

0 commit comments

Comments
 (0)