diff --git a/functionMap.php b/functionMap.php index df0a5a6..2e6b2b5 100644 --- a/functionMap.php +++ b/functionMap.php @@ -196,4 +196,5 @@ 'WP_Widget_Factory::$widgets' => [null, '@phpstan-var' => 'array'], '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'"], ]; diff --git a/wordpress-stubs.php b/wordpress-stubs.php index b24542b..de4d37e 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -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') {