Skip to content

Commit

Permalink
Add param type for Custom_Image_Header::show_header_selector()
Browse files Browse the repository at this point in the history
  • Loading branch information
IanDelMar committed Sep 17, 2024
1 parent 1f15110 commit d519e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,5 @@
'WP_Widget_Factory::$widgets' => [null, '@phpstan-var' => 'array<string, \WP_Widget>'],
'WP_Widget_Factory::register' => [null, 'widget' => 'class-string<\WP_Widget>|\WP_Widget'],
'WP_Widget_Factory::unregister' => [null, 'widget' => 'class-string<\WP_Widget>|\WP_Widget'],
'Custom_Image_Header::show_header_selector' => [null, 'type' => "'default'|'uploaded'"],
];
1 change: 1 addition & 0 deletions wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,7 @@ public function process_default_headers()
*
* @param string $type The header type. One of 'default' (for the Uploaded Images control)
* or 'uploaded' (for the Uploaded Images control).
* @phpstan-param 'default'|'uploaded' $type
*/
public function show_header_selector($type = 'default')
{
Expand Down

0 comments on commit d519e34

Please # to comment.