Skip to content

Commit 4417424

Browse files
committed
Add param type for Custom_Image_Header::set_header_image()
1 parent d519e34 commit 4417424

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

functionMap.php

+1
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,5 @@
197197
'WP_Widget_Factory::register' => [null, 'widget' => 'class-string<\WP_Widget>|\WP_Widget'],
198198
'WP_Widget_Factory::unregister' => [null, 'widget' => 'class-string<\WP_Widget>|\WP_Widget'],
199199
'Custom_Image_Header::show_header_selector' => [null, 'type' => "'default'|'uploaded'"],
200+
'Custom_Image_Header::set_header_image' => [null, 'choice' => 'string|array{attachment_id: positive-int, url: string, width: non-negative-int, height: non-negative-int}'],
200201
];

wordpress-stubs.php

+1
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,7 @@ public function filter_upload_tabs($tabs)
13551355
* registered for that theme; and the key of an image uploaded for that theme
13561356
* (the attachment ID of the image). Or an array of arguments: attachment_id,
13571357
* url, width, height. All are required.
1358+
* @phpstan-param string|array{attachment_id: positive-int, url: string, width: non-negative-int, height: non-negative-int} $choice
13581359
* @phpstan-return void
13591360
*/
13601361
public final function set_header_image($choice)

0 commit comments

Comments
 (0)