From e178ecea921bf527438f4626c7ea56807849c638 Mon Sep 17 00:00:00 2001 From: Marian <42134098+IanDelMar@users.noreply.github.com> Date: Fri, 18 Apr 2025 10:56:01 +0200 Subject: [PATCH] Bump nikic/php-parser --- composer.json | 2 +- wordpress-stubs.php | 520 ++++++++++++++++++++++---------------------- 2 files changed, 261 insertions(+), 261 deletions(-) diff --git a/composer.json b/composer.json index 8597b86..368be2e 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ "require-dev": { "php": "^7.4 || ^8.0", "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "nikic/php-parser": "^4.13", + "nikic/php-parser": "^5.4", "php-stubs/generator": "^0.8.3", "phpdocumentor/reflection-docblock": "^5.4.1", "phpstan/phpstan": "^2.1", diff --git a/wordpress-stubs.php b/wordpress-stubs.php index 2a8837d..3fd9e00 100644 --- a/wordpress-stubs.php +++ b/wordpress-stubs.php @@ -1362,7 +1362,7 @@ public function filter_upload_tabs($tabs) * @phpstan-param string|array{attachment_id: int<1, max>, url: string, width: int<0, max>, height: int<0, max>} $choice * @phpstan-return void */ - public final function set_header_image($choice) + final public function set_header_image($choice) { } /** @@ -1370,7 +1370,7 @@ public final function set_header_image($choice) * * @since 3.4.0 */ - public final function remove_header_image() + final public function remove_header_image() { } /** @@ -1381,7 +1381,7 @@ public final function remove_header_image() * @since 3.4.0 * @phpstan-return void */ - public final function reset_header_image() + final public function reset_header_image() { } /** @@ -1392,7 +1392,7 @@ public final function reset_header_image() * @param array $dimensions * @return array dst_height and dst_width of header image. */ - public final function get_header_dimensions($dimensions) + final public function get_header_dimensions($dimensions) { } /** @@ -1405,7 +1405,7 @@ public final function get_header_dimensions($dimensions) * @param int $parent_attachment_id Attachment ID of parent image. * @return array An array with attachment object data. */ - public final function create_attachment_object($cropped, $parent_attachment_id) + final public function create_attachment_object($cropped, $parent_attachment_id) { } /** @@ -1417,7 +1417,7 @@ public final function create_attachment_object($cropped, $parent_attachment_id) * @param string $cropped File path to cropped image. * @return int Attachment ID. */ - public final function insert_attachment($attachment, $cropped) + final public function insert_attachment($attachment, $cropped) { } /** @@ -12989,7 +12989,7 @@ public function __construct(\getID3 $getid3, $call_module = \null) * * @return bool */ - public abstract function Analyze(); + abstract public function Analyze(); /** * Analyze from string instead. * @@ -13060,7 +13060,7 @@ protected function feof() * * @return bool */ - protected final function isDependencyFor($module) + final protected function isDependencyFor($module) { } /** @@ -17483,7 +17483,7 @@ class SMTP * * @var string[] */ - protected $smtp_transaction_id_patterns = ['exim' => '/[\\d]{3} OK id=(.*)/', 'sendmail' => '/[\\d]{3} 2\\.0\\.0 (.*) Message/', 'postfix' => '/[\\d]{3} 2\\.0\\.0 Ok: queued as (.*)/', 'Microsoft_ESMTP' => '/[0-9]{3} 2\\.[\\d]\\.0 (.*)@(?:.*) Queued mail for delivery/', 'Amazon_SES' => '/[\\d]{3} Ok (.*)/', 'SendGrid' => '/[\\d]{3} Ok: queued as (.*)/', 'CampaignMonitor' => '/[\\d]{3} 2\\.0\\.0 OK:([a-zA-Z\\d]{48})/', 'Haraka' => '/[\\d]{3} Message Queued \\((.*)\\)/', 'ZoneMTA' => '/[\\d]{3} Message queued as (.*)/', 'Mailjet' => '/[\\d]{3} OK queued as (.*)/']; + protected $smtp_transaction_id_patterns = ['exim' => '/[\d]{3} OK id=(.*)/', 'sendmail' => '/[\d]{3} 2\.0\.0 (.*) Message/', 'postfix' => '/[\d]{3} 2\.0\.0 Ok: queued as (.*)/', 'Microsoft_ESMTP' => '/[0-9]{3} 2\.[\d]\.0 (.*)@(?:.*) Queued mail for delivery/', 'Amazon_SES' => '/[\d]{3} Ok (.*)/', 'SendGrid' => '/[\d]{3} Ok: queued as (.*)/', 'CampaignMonitor' => '/[\d]{3} 2\.0\.0 OK:([a-zA-Z\d]{48})/', 'Haraka' => '/[\d]{3} Message Queued \((.*)\)/', 'ZoneMTA' => '/[\d]{3} Message queued as (.*)/', 'Mailjet' => '/[\d]{3} OK queued as (.*)/']; /** * Allowed SMTP XCLIENT attributes. * Must be allowed by the SMTP server. EHLO response is not checked. @@ -21384,11 +21384,11 @@ class SimplePie /** * PCRE for HTML attributes */ - public const PCRE_HTML_ATTRIBUTE = '((?:[\\x09\\x0A\\x0B\\x0C\\x0D\\x20]+[^\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\x2F\\x3E][^\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\x2F\\x3D\\x3E]*(?:[\\x09\\x0A\\x0B\\x0C\\x0D\\x20]*=[\\x09\\x0A\\x0B\\x0C\\x0D\\x20]*(?:"(?:[^"]*)"|\'(?:[^\']*)\'|(?:[^\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\x22\\x27\\x3E][^\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\x3E]*)?))?)*)[\\x09\\x0A\\x0B\\x0C\\x0D\\x20]*'; + public const PCRE_HTML_ATTRIBUTE = '((?:[\x09\x0A\x0B\x0C\x0D\x20]+[^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3E][^\x09\x0A\x0B\x0C\x0D\x20\x2F\x3D\x3E]*(?:[\x09\x0A\x0B\x0C\x0D\x20]*=[\x09\x0A\x0B\x0C\x0D\x20]*(?:"(?:[^"]*)"|\'(?:[^\']*)\'|(?:[^\x09\x0A\x0B\x0C\x0D\x20\x22\x27\x3E][^\x09\x0A\x0B\x0C\x0D\x20\x3E]*)?))?)*)[\x09\x0A\x0B\x0C\x0D\x20]*'; /** * PCRE for XML attributes */ - public const PCRE_XML_ATTRIBUTE = '((?:\\s+(?:(?:[^\\s:]+:)?[^\\s:]+)\\s*=\\s*(?:"(?:[^"]*)"|\'(?:[^\']*)\'))*)\\s*'; + public const PCRE_XML_ATTRIBUTE = '((?:\s+(?:(?:[^\s:]+:)?[^\s:]+)\s*=\s*(?:"(?:[^"]*)"|\'(?:[^\']*)\'))*)\s*'; /** * XML Namespace */ @@ -22149,7 +22149,7 @@ public function set_useragent($ua = null) * * @return void */ - public function set_cache_namefilter(\SimplePie\Cache\NameFilter $filter) : void + public function set_cache_namefilter(\SimplePie\Cache\NameFilter $filter): void { } /** @@ -22954,7 +22954,7 @@ class Cache * {@see register()} * @var array */ - protected static $handlers = ['mysql' => 'SimplePie\\Cache\\MySQL', 'memcache' => 'SimplePie\\Cache\\Memcache', 'memcached' => 'SimplePie\\Cache\\Memcached', 'redis' => 'SimplePie\\Cache\\Redis']; + protected static $handlers = ['mysql' => 'SimplePie\Cache\MySQL', 'memcache' => 'SimplePie\Cache\Memcache', 'memcached' => 'SimplePie\Cache\Memcached', 'redis' => 'SimplePie\Cache\Redis']; /** * Create a new SimplePie\Cache object * @@ -26898,10 +26898,10 @@ public function set_image_handler($page = false) public function set_registry(\SimplePie\Registry $registry) { } - public function pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie\\Cache', ?\SimplePie\Cache\DataCache $cache = null) + public function pass_cache_data($enable_cache = true, $cache_location = './cache', $cache_name_function = 'md5', $cache_class = 'SimplePie\Cache', ?\SimplePie\Cache\DataCache $cache = null) { } - public function pass_file_data($file_class = 'SimplePie\\File', $timeout = 10, $useragent = '', $force_fsockopen = false) + public function pass_file_data($file_class = 'SimplePie\File', $timeout = 10, $useragent = '', $force_fsockopen = false) { } public function strip_htmltags($tags = ['base', 'blink', 'body', 'doctype', 'embed', 'font', 'form', 'frame', 'frameset', 'html', 'iframe', 'input', 'marquee', 'meta', 'noscript', 'object', 'param', 'script', 'style']) @@ -27425,7 +27425,7 @@ public function get_data(string $key, $default = null); * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ - public function set_data(string $key, array $value, ?int $ttl = null) : bool; + public function set_data(string $key, array $value, ?int $ttl = null): bool; /** * Delete an item from the cache by its unique key. * @@ -27441,7 +27441,7 @@ public function set_data(string $key, array $value, ?int $ttl = null) : bool; * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ - public function delete_data(string $key) : bool; + public function delete_data(string $key): bool; } /** * Adapter for deprecated \SimplePie\Cache\Base implementations @@ -27493,7 +27493,7 @@ public function get_data(string $key, $default = null) * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ - public function set_data(string $key, array $value, ?int $ttl = null) : bool + public function set_data(string $key, array $value, ?int $ttl = null): bool { } /** @@ -27511,7 +27511,7 @@ public function set_data(string $key, array $value, ?int $ttl = null) : bool * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ - public function delete_data(string $key) : bool + public function delete_data(string $key): bool { } } @@ -27544,7 +27544,7 @@ interface NameFilter * * @return string the new cache name */ - public function filter(string $name) : string; + public function filter(string $name): string; } /** * Creating a cache filename with callables @@ -27578,7 +27578,7 @@ public function __construct(callable $callable) * * @return string the new cache name */ - public function filter(string $name) : string + public function filter(string $name): string { } } @@ -27637,7 +27637,7 @@ public function get_data(string $key, $default = null) * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ - public function set_data(string $key, array $value, ?int $ttl = null) : bool + public function set_data(string $key, array $value, ?int $ttl = null): bool { } /** @@ -27655,7 +27655,7 @@ public function set_data(string $key, array $value, ?int $ttl = null) : bool * @throws InvalidArgumentException * MUST be thrown if the $key string is not a legal value. */ - public function delete_data(string $key) : bool + public function delete_data(string $key): bool { } } @@ -29503,7 +29503,7 @@ public function add_node($args) * * @param array $args */ - protected final function _set_node($args) + final protected function _set_node($args) { } /** @@ -29514,7 +29514,7 @@ protected final function _set_node($args) * @param string $id * @return object|void Node. */ - public final function get_node($id) + final public function get_node($id) { } /** @@ -29523,7 +29523,7 @@ public final function get_node($id) * @param string $id * @return object|void */ - protected final function _get_node($id) + final protected function _get_node($id) { } /** @@ -29531,7 +29531,7 @@ protected final function _get_node($id) * * @return array|void */ - public final function get_nodes() + final public function get_nodes() { } /** @@ -29539,7 +29539,7 @@ public final function get_nodes() * * @return array|void */ - protected final function _get_nodes() + final protected function _get_nodes() { } /** @@ -29563,7 +29563,7 @@ protected final function _get_nodes() * meta?: array, * } $args */ - public final function add_group($args) + final public function add_group($args) { } /** @@ -29581,7 +29581,7 @@ public function remove_node($id) * * @param string $id */ - protected final function _unset_node($id) + final protected function _unset_node($id) { } /** @@ -29595,7 +29595,7 @@ public function render() * * @return object|void */ - protected final function _bind() + final protected function _bind() { } /** @@ -29603,7 +29603,7 @@ protected final function _bind() * * @param object $root */ - protected final function _render($root) + final protected function _render($root) { } /** @@ -29612,7 +29612,7 @@ protected final function _render($root) * @param object $node * @phpstan-return void */ - protected final function _render_container($node) + final protected function _render_container($node) { } /** @@ -29623,7 +29623,7 @@ protected final function _render_container($node) * @param string|bool $menu_title The accessible name of this ARIA menu or false if not provided. * @phpstan-return void */ - protected final function _render_group($node, $menu_title = \false) + final protected function _render_group($node, $menu_title = \false) { } /** @@ -29632,7 +29632,7 @@ protected final function _render_group($node, $menu_title = \false) * @param object $node * @phpstan-return void */ - protected final function _render_item($node) + final protected function _render_item($node) { } /** @@ -30034,7 +30034,7 @@ public static function chunk_password($raw_password) * @param string $password Plaintext password. * @return string Hashed password. */ - public static function hash_password(string $password) : string + public static function hash_password(string $password): string { } /** @@ -30046,7 +30046,7 @@ public static function hash_password(string $password) : string * @param string $hash Hash of the password to check against. * @return bool Whether the password matches the hashed password. */ - public static function check_password(string $password, string $hash) : bool + public static function check_password(string $password, string $hash): bool { } } @@ -33189,7 +33189,7 @@ public function enqueue() * * @return bool Whether the control is active to the current preview. */ - public final function active() + final public function active() { } /** @@ -33214,7 +33214,7 @@ public function active_callback() * @param string $setting_key * @return mixed The requested setting's value, if the setting exists. */ - public final function value($setting_key = 'default') + final public function value($setting_key = 'default') { } /** @@ -33247,7 +33247,7 @@ public function json() * * @return bool False if theme doesn't support the control or user doesn't have the required permissions, otherwise true. */ - public final function check_capabilities() + final public function check_capabilities() { } /** @@ -33257,7 +33257,7 @@ public final function check_capabilities() * * @return string Contents of the control. */ - public final function get_content() + final public function get_content() { } /** @@ -33267,7 +33267,7 @@ public final function get_content() * @uses WP_Customize_Control::render() * @phpstan-return void */ - public final function maybe_render() + final public function maybe_render() { } /** @@ -33338,7 +33338,7 @@ protected function render_content() * * @since 4.1.0 */ - public final function print_template() + final public function print_template() { } /** @@ -35354,7 +35354,7 @@ public function __construct($manager, $id, $args = array()) * * @return bool Whether the panel is active to the current preview. */ - public final function active() + final public function active() { } /** @@ -35399,7 +35399,7 @@ public function check_capabilities() * * @return string Content for the panel. */ - public final function get_content() + final public function get_content() { } /** @@ -35408,7 +35408,7 @@ public final function get_content() * @since 4.0.0 * @phpstan-return void */ - public final function maybe_render() + final public function maybe_render() { } /** @@ -35641,7 +35641,7 @@ public function __construct($manager, $id, $args = array()) * * @return bool Whether the section is active to the current preview. */ - public final function active() + final public function active() { } /** @@ -35675,7 +35675,7 @@ public function json() * * @return bool False if theme doesn't support the section or user doesn't have the capability. */ - public final function check_capabilities() + final public function check_capabilities() { } /** @@ -35685,7 +35685,7 @@ public final function check_capabilities() * * @return string Contents of the section. */ - public final function get_content() + final public function get_content() { } /** @@ -35694,7 +35694,7 @@ public final function get_content() * @since 3.4.0 * @phpstan-return void */ - public final function maybe_render() + final public function maybe_render() { } /** @@ -35918,7 +35918,7 @@ public function __construct($manager, $id, $args = array()) * keys: array, * } */ - public final function id_data() + final public function id_data() { } /** @@ -35995,7 +35995,7 @@ public function preview() * @see WP_Customize_Manager::set_post_value() * @see WP_Customize_Setting::_multidimensional_preview_filter() */ - public final function _clear_aggregated_multidimensional_preview_applied_flag() + final public function _clear_aggregated_multidimensional_preview_applied_flag() { } /** @@ -36025,7 +36025,7 @@ public function _preview_filter($original) * @param mixed $original Original root value. * @return mixed New or old value. */ - public final function _multidimensional_preview_filter($original) + final public function _multidimensional_preview_filter($original) { } /** @@ -36037,7 +36037,7 @@ public final function _multidimensional_preview_filter($original) * @return void|false Void on success, false if cap check fails * or value isn't set or is invalid. */ - public final function save() + final public function save() { } /** @@ -36050,7 +36050,7 @@ public final function save() * @param mixed $default_value A default value which is used as a fallback. Default null. * @return mixed The default value on failure, otherwise the sanitized and validated value. */ - public final function post_value($default_value = \null) + final public function post_value($default_value = \null) { } /** @@ -36165,7 +36165,7 @@ public function json() * * @return bool False if theme doesn't support the setting or user can't change setting, otherwise true. */ - public final function check_capabilities() + final public function check_capabilities() { } /** @@ -36178,7 +36178,7 @@ public final function check_capabilities() * @param bool $create Default false. * @return array|void Keys are 'root', 'node', and 'key'. */ - protected final function multidimensional(&$root, $keys, $create = \false) + final protected function multidimensional(&$root, $keys, $create = \false) { } /** @@ -36191,7 +36191,7 @@ protected final function multidimensional(&$root, $keys, $create = \false) * @param mixed $value The value to update. * @return mixed */ - protected final function multidimensional_replace($root, $keys, $value) + final protected function multidimensional_replace($root, $keys, $value) { } /** @@ -36204,7 +36204,7 @@ protected final function multidimensional_replace($root, $keys, $value) * @param mixed $default_value A default value which is used as a fallback. Default null. * @return mixed The requested value or the default value. */ - protected final function multidimensional_get($root, $keys, $default_value = \null) + final protected function multidimensional_get($root, $keys, $default_value = \null) { } /** @@ -36216,7 +36216,7 @@ protected final function multidimensional_get($root, $keys, $default_value = \nu * @param array $keys * @return bool True if value is set, false if not. */ - protected final function multidimensional_isset($root, $keys) + final protected function multidimensional_isset($root, $keys) { } } @@ -40421,7 +40421,7 @@ public static function supports_mime_type($mime_type) * * @return true|WP_Error True if loaded; WP_Error on failure. */ - public abstract function load(); + abstract public function load(); /** * Saves current image to file. * @@ -40450,7 +40450,7 @@ public abstract function load(); * filesize: int, * } */ - public abstract function save($destfilename = \null, $mime_type = \null); + abstract public function save($destfilename = \null, $mime_type = \null); /** * Resizes current image. * @@ -40477,7 +40477,7 @@ public abstract function save($destfilename = \null, $mime_type = \null); * 1: string, * } $crop */ - public abstract function resize($max_w, $max_h, $crop = \false); + abstract public function resize($max_w, $max_h, $crop = \false); /** * Resize multiple images from a single source. * @@ -40500,7 +40500,7 @@ public abstract function resize($max_w, $max_h, $crop = \false); * crop?: bool|array, * }> $sizes */ - public abstract function multi_resize($sizes); + abstract public function multi_resize($sizes); /** * Crops Image. * @@ -40516,7 +40516,7 @@ public abstract function multi_resize($sizes); * @param bool $src_abs Optional. If the source crop points are absolute. * @return true|WP_Error */ - public abstract function crop($src_x, $src_y, $src_w, $src_h, $dst_w = \null, $dst_h = \null, $src_abs = \false); + abstract public function crop($src_x, $src_y, $src_w, $src_h, $dst_w = \null, $dst_h = \null, $src_abs = \false); /** * Rotates current image counter-clockwise by $angle. * @@ -40526,7 +40526,7 @@ public abstract function crop($src_x, $src_y, $src_w, $src_h, $dst_w = \null, $d * @param float $angle * @return true|WP_Error */ - public abstract function rotate($angle); + abstract public function rotate($angle); /** * Flips current image. * @@ -40537,7 +40537,7 @@ public abstract function rotate($angle); * @param bool $vert Flip along Vertical Axis * @return true|WP_Error */ - public abstract function flip($horz, $vert); + abstract public function flip($horz, $vert); /** * Streams current image to browser. * @@ -40547,7 +40547,7 @@ public abstract function flip($horz, $vert); * @param string $mime_type The mime type of the image. * @return true|WP_Error True on success, WP_Error object on failure. */ - public abstract function stream($mime_type = \null); + abstract public function stream($mime_type = \null); /** * Gets dimensions of image. * @@ -41928,7 +41928,7 @@ class WP_MatchesMapRegex * * @var string */ - public $_pattern = '(\\$matches\\[[1-9]+[0-9]*\\])'; + public $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; /** * constructor * @@ -48063,7 +48063,7 @@ public function print_import_map() * The data for a Script Module will be serialized as JSON in a script tag with an ID of the * form `wp-script-module-data-{$module_id}`. */ - public function print_script_module_data() : void + public function print_script_module_data(): void { } /** @@ -48489,7 +48489,7 @@ protected function __construct($user_id) * @return WP_Session_Tokens The session object, which is by default an instance of * the `WP_User_Meta_Session_Tokens` class. */ - public static final function get_instance($user_id) + final public static function get_instance($user_id) { } /** @@ -48500,7 +48500,7 @@ public static final function get_instance($user_id) * @param string $token Session token. * @return array|null The session, or null if it does not exist. */ - public final function get($token) + final public function get($token) { } /** @@ -48513,7 +48513,7 @@ public final function get($token) * @param string $token Token to verify. * @return bool Whether the token is valid for the user. */ - public final function verify($token) + final public function verify($token) { } /** @@ -48532,7 +48532,7 @@ public final function verify($token) * @param int $expiration Session expiration timestamp. * @return string Session token. */ - public final function create($expiration) + final public function create($expiration) { } /** @@ -48543,7 +48543,7 @@ public final function create($expiration) * @param string $token Session token to update. * @param array $session Session information. */ - public final function update($token, $session) + final public function update($token, $session) { } /** @@ -48553,7 +48553,7 @@ public final function update($token, $session) * * @param string $token Session token to destroy. */ - public final function destroy($token) + final public function destroy($token) { } /** @@ -48563,7 +48563,7 @@ public final function destroy($token) * * @param string $token_to_keep Session token to keep. */ - public final function destroy_others($token_to_keep) + final public function destroy_others($token_to_keep) { } /** @@ -48574,7 +48574,7 @@ public final function destroy_others($token_to_keep) * @param array $session Session to check. * @return bool Whether session is valid. */ - protected final function is_still_valid($session) + final protected function is_still_valid($session) { } /** @@ -48582,7 +48582,7 @@ protected final function is_still_valid($session) * * @since 4.0.0 */ - public final function destroy_all() + final public function destroy_all() { } /** @@ -48590,7 +48590,7 @@ public final function destroy_all() * * @since 4.0.0 */ - public static final function destroy_all_for_all_users() + final public static function destroy_all_for_all_users() { } /** @@ -48600,7 +48600,7 @@ public static final function destroy_all_for_all_users() * * @return array Sessions for a user. */ - public final function get_all() + final public function get_all() { } /** @@ -48610,7 +48610,7 @@ public final function get_all() * * @return array Sessions of the user. */ - protected abstract function get_sessions(); + abstract protected function get_sessions(); /** * Retrieves a session based on its verifier (token hash). * @@ -48619,7 +48619,7 @@ protected abstract function get_sessions(); * @param string $verifier Verifier for the session to retrieve. * @return array|null The session, or null if it does not exist. */ - protected abstract function get_session($verifier); + abstract protected function get_session($verifier); /** * Updates a session based on its verifier (token hash). * @@ -48630,7 +48630,7 @@ protected abstract function get_session($verifier); * @param string $verifier Verifier for the session to update. * @param array $session Optional. Session. Omitting this argument destroys the session. */ - protected abstract function update_session($verifier, $session = \null); + abstract protected function update_session($verifier, $session = \null); /** * Destroys all sessions for this user, except the single session with the given verifier. * @@ -48638,13 +48638,13 @@ protected abstract function update_session($verifier, $session = \null); * * @param string $verifier Verifier of the session to keep. */ - protected abstract function destroy_other_sessions($verifier); + abstract protected function destroy_other_sessions($verifier); /** * Destroys all sessions for the user. * * @since 4.0.0 */ - protected abstract function destroy_all_sessions(); + abstract protected function destroy_all_sessions(); /** * Destroys all sessions for all users. * @@ -49278,7 +49278,7 @@ final class WP_Speculation_Rules implements \JsonSerializable * @return bool True on success, false if invalid parameters are provided. * @phpstan-param 'prefetch'|'prerender' $mode */ - public function add_rule(string $mode, string $id, array $rule) : bool + public function add_rule(string $mode, string $id, array $rule): bool { } /** @@ -49291,7 +49291,7 @@ public function add_rule(string $mode, string $id, array $rule) : bool * @return bool True if the rule already exists, false otherwise. * @phpstan-param 'prefetch'|'prerender' $mode */ - public function has_rule(string $mode, string $id) : bool + public function has_rule(string $mode, string $id): bool { } /** @@ -49313,7 +49313,7 @@ public function jsonSerialize() * @param string $mode Speculation rules mode. * @return bool True if valid, false otherwise. */ - public static function is_valid_mode(string $mode) : bool + public static function is_valid_mode(string $mode): bool { } /** @@ -49324,7 +49324,7 @@ public static function is_valid_mode(string $mode) : bool * @param string $eagerness Speculation rules eagerness. * @return bool True if valid, false otherwise. */ - public static function is_valid_eagerness(string $eagerness) : bool + public static function is_valid_eagerness(string $eagerness): bool { } /** @@ -49335,7 +49335,7 @@ public static function is_valid_eagerness(string $eagerness) : bool * @param string $source Speculation rules source. * @return bool True if valid, false otherwise. */ - public static function is_valid_source(string $source) : bool + public static function is_valid_source(string $source): bool { } } @@ -53730,7 +53730,7 @@ class WP_Token_Map * * @return WP_Token_Map|null Token map, unless unable to create it. */ - public static function from_array(array $mappings, int $key_length = 2) : ?\WP_Token_Map + public static function from_array(array $mappings, int $key_length = 2): ?\WP_Token_Map { } /** @@ -53763,7 +53763,7 @@ public static function from_array(array $mappings, int $key_length = 2) : ?\WP_T * small_mappings?: array, * } $state */ - public static function from_precomputed_table($state) : ?\WP_Token_Map + public static function from_precomputed_table($state): ?\WP_Token_Map { } /** @@ -53780,7 +53780,7 @@ public static function from_precomputed_table($state) : ?\WP_Token_Map * @param string $case_sensitivity Optional. Pass 'ascii-case-insensitive' to ignore ASCII case when matching. Default 'case-sensitive'. * @return bool Whether there's an entry for the given word in the map. */ - public function contains(string $word, string $case_sensitivity = 'case-sensitive') : bool + public function contains(string $word, string $case_sensitivity = 'case-sensitive'): bool { } /** @@ -53826,7 +53826,7 @@ public function contains(string $word, string $case_sensitivity = 'case-sensitiv * * @return string|null Mapped value of lookup key if found, otherwise `null`. */ - public function read_token(string $text, int $offset = 0, &$matched_token_byte_length = \null, $case_sensitivity = 'case-sensitive') : ?string + public function read_token(string $text, int $offset = 0, &$matched_token_byte_length = \null, $case_sensitivity = 'case-sensitive'): ?string { } /** @@ -53843,7 +53843,7 @@ public function read_token(string $text, int $offset = 0, &$matched_token_byte_l * * @return array The lookup key/substitution values as an associate array. */ - public function to_array() : array + public function to_array(): array { } /** @@ -53874,7 +53874,7 @@ public function to_array() : array * @param string $indent Optional. Use this string for indentation, or rely on the default horizontal tab character. Default "\t". * @return string Value which can be pasted into a PHP source file for quick loading of table. */ - public function precomputed_php_source_table(string $indent = "\t") : string + public function precomputed_php_source_table(string $indent = "\t"): string { } } @@ -53914,7 +53914,7 @@ public function __construct(array $contexts = array()) * @param string $context Optional. Context to use for prefixing the path pattern. Default 'home'. * @return string URL pattern, prefixed as necessary. */ - public function prefix_path_pattern(string $path_pattern, string $context = 'home') : string + public function prefix_path_pattern(string $path_pattern, string $context = 'home'): string { } /** @@ -53924,7 +53924,7 @@ public function prefix_path_pattern(string $path_pattern, string $context = 'hom * * @return array Map of `$context_string => $base_path` pairs. */ - public static function get_default_contexts() : array + public static function get_default_contexts(): array { } } @@ -60965,7 +60965,7 @@ public function json() */ class WP_Customize_Nav_Menu_Item_Setting extends \WP_Customize_Setting { - const ID_PATTERN = '/^nav_menu_item\\[(?P-?\\d+)\\]$/'; + const ID_PATTERN = '/^nav_menu_item\[(?P-?\d+)\]$/'; const POST_TYPE = 'nav_menu_item'; const TYPE = 'nav_menu_item'; /** @@ -61419,7 +61419,7 @@ public function json() */ class WP_Customize_Nav_Menu_Setting extends \WP_Customize_Setting { - const ID_PATTERN = '/^nav_menu\\[(?P-?\\d+)\\]$/'; + const ID_PATTERN = '/^nav_menu\[(?P-?\d+)\]$/'; const TAXONOMY = 'nav_menu'; const TYPE = 'nav_menu'; /** @@ -62029,7 +62029,7 @@ public function __construct(\WP_Customize_Selective_Refresh $component, $id, $ar * keys: array, * } */ - public final function id_data() + final public function id_data() { } /** @@ -62042,7 +62042,7 @@ public final function id_data() * @return string|array|false The rendered partial as a string, raw data array (for client-side JS template), * or false if no render applied. */ - public final function render($container_context = array()) + final public function render($container_context = array()) { } /** @@ -62087,7 +62087,7 @@ public function json() * @return bool False if user can't edit one of the related settings, * or if one of the associated settings does not exist. */ - public final function check_capabilities() + final public function check_capabilities() { } } @@ -63059,7 +63059,7 @@ public function current_node() * * @since 6.7.0 */ - public function insert_marker() : void + public function insert_marker(): void { } /** @@ -63146,7 +63146,7 @@ public function walk_up() * * @since 6.7.0 */ - public function clear_up_to_last_marker() : void + public function clear_up_to_last_marker(): void { } } @@ -63279,7 +63279,7 @@ class WP_HTML_Decoder * Default 'case-sensitive'. * @return bool Whether the attribute value starts with the given string. */ - public static function attribute_starts_with($haystack, $search_text, $case_sensitivity = 'case-sensitive') : bool + public static function attribute_starts_with($haystack, $search_text, $case_sensitivity = 'case-sensitive'): bool { } /** @@ -63299,7 +63299,7 @@ public static function attribute_starts_with($haystack, $search_text, $case_sens * @param string $text Text containing raw and non-decoded text node to decode. * @return string Decoded UTF-8 value of given text node. */ - public static function decode_text_node($text) : string + public static function decode_text_node($text): string { } /** @@ -63318,7 +63318,7 @@ public static function decode_text_node($text) : string * @param string $text Text containing raw and non-decoded attribute value to decode. * @return string Decoded UTF-8 value of given attribute value. */ - public static function decode_attribute($text) : string + public static function decode_attribute($text): string { } /** @@ -63340,7 +63340,7 @@ public static function decode_attribute($text) : string * @param string $text Text document containing span of text to decode. * @return string Decoded UTF-8 string. */ - public static function decode($context, $text) : string + public static function decode($context, $text): string { } /** @@ -63403,7 +63403,7 @@ public static function read_character_reference($context, $text, $at = 0, &$matc * @param int $code_point Which code point to convert. * @return string Converted code point, or `�` if invalid. */ - public static function code_point_to_utf8_bytes($code_point) : string + public static function code_point_to_utf8_bytes($code_point): string { } } @@ -63582,7 +63582,7 @@ class WP_HTML_Doctype_Info * @return WP_HTML_Doctype_Info|null A WP_HTML_Doctype_Info instance will be returned if the * provided DOCTYPE HTML is a valid DOCTYPE. Otherwise, null. */ - public static function from_doctype_token(string $doctype_html) : ?self + public static function from_doctype_token(string $doctype_html): ?self { } } @@ -63626,7 +63626,7 @@ class WP_HTML_Open_Elements * * @param Closure $handler The handler function. */ - public function set_pop_handler(\Closure $handler) : void + public function set_pop_handler(\Closure $handler): void { } /** @@ -63639,7 +63639,7 @@ public function set_pop_handler(\Closure $handler) : void * * @param Closure $handler The handler function. */ - public function set_push_handler(\Closure $handler) : void + public function set_push_handler(\Closure $handler): void { } /** @@ -63657,7 +63657,7 @@ public function set_push_handler(\Closure $handler) : void * @return WP_HTML_Token|null Name of the node on the stack at the given location, * or `null` if the location isn't on the stack. */ - public function at(int $nth) : ?\WP_HTML_Token + public function at(int $nth): ?\WP_HTML_Token { } /** @@ -63668,7 +63668,7 @@ public function at(int $nth) : ?\WP_HTML_Token * @param string $node_name Name of node for which to check. * @return bool Whether a node of the given name is in the stack of open elements. */ - public function contains(string $node_name) : bool + public function contains(string $node_name): bool { } /** @@ -63679,7 +63679,7 @@ public function contains(string $node_name) : bool * @param WP_HTML_Token $token Look for this node in the stack. * @return bool Whether the referenced node is in the stack of open elements. */ - public function contains_node(\WP_HTML_Token $token) : bool + public function contains_node(\WP_HTML_Token $token): bool { } /** @@ -63689,7 +63689,7 @@ public function contains_node(\WP_HTML_Token $token) : bool * * @return int How many node are in the stack of open elements. */ - public function count() : int + public function count(): int { } /** @@ -63700,7 +63700,7 @@ public function count() : int * * @return WP_HTML_Token|null Last node in the stack of open elements, if one exists, otherwise null. */ - public function current_node() : ?\WP_HTML_Token + public function current_node(): ?\WP_HTML_Token { } /** @@ -63730,7 +63730,7 @@ public function current_node() : ?\WP_HTML_Token * @param string $identity Check if the current node has this name or type (depending on what is provided). * @return bool Whether there is a current element that matches the given identity, whether a token name or type. */ - public function current_node_is(string $identity) : bool + public function current_node_is(string $identity): bool { } /** @@ -63744,7 +63744,7 @@ public function current_node_is(string $identity) : bool * @param string[] $termination_list List of elements that terminate the search. * @return bool Whether the element was found in a specific scope. */ - public function has_element_in_specific_scope(string $tag_name, $termination_list) : bool + public function has_element_in_specific_scope(string $tag_name, $termination_list): bool { } /** @@ -63781,7 +63781,7 @@ public function has_element_in_specific_scope(string $tag_name, $termination_lis * @param string $tag_name Name of tag to check. * @return bool Whether given element is in scope. */ - public function has_element_in_scope(string $tag_name) : bool + public function has_element_in_scope(string $tag_name): bool { } /** @@ -63804,7 +63804,7 @@ public function has_element_in_scope(string $tag_name) : bool * @param string $tag_name Name of tag to check. * @return bool Whether given element is in scope. */ - public function has_element_in_list_item_scope(string $tag_name) : bool + public function has_element_in_list_item_scope(string $tag_name): bool { } /** @@ -63825,7 +63825,7 @@ public function has_element_in_list_item_scope(string $tag_name) : bool * @param string $tag_name Name of tag to check. * @return bool Whether given element is in scope. */ - public function has_element_in_button_scope(string $tag_name) : bool + public function has_element_in_button_scope(string $tag_name): bool { } /** @@ -63847,7 +63847,7 @@ public function has_element_in_button_scope(string $tag_name) : bool * @param string $tag_name Name of tag to check. * @return bool Whether given element is in scope. */ - public function has_element_in_table_scope(string $tag_name) : bool + public function has_element_in_table_scope(string $tag_name): bool { } /** @@ -63870,7 +63870,7 @@ public function has_element_in_table_scope(string $tag_name) : bool * @param string $tag_name Name of tag to check. * @return bool Whether the given element is in SELECT scope. */ - public function has_element_in_select_scope(string $tag_name) : bool + public function has_element_in_select_scope(string $tag_name): bool { } /** @@ -63882,7 +63882,7 @@ public function has_element_in_select_scope(string $tag_name) : bool * * @return bool Whether a P is in BUTTON scope. */ - public function has_p_in_button_scope() : bool + public function has_p_in_button_scope(): bool { } /** @@ -63894,7 +63894,7 @@ public function has_p_in_button_scope() : bool * * @return bool Whether a node was popped off of the stack. */ - public function pop() : bool + public function pop(): bool { } /** @@ -63907,7 +63907,7 @@ public function pop() : bool * @param string $html_tag_name Name of tag that needs to be popped off of the stack of open elements. * @return bool Whether a tag of the given name was found and popped off of the stack of open elements. */ - public function pop_until(string $html_tag_name) : bool + public function pop_until(string $html_tag_name): bool { } /** @@ -63919,7 +63919,7 @@ public function pop_until(string $html_tag_name) : bool * * @param WP_HTML_Token $stack_item Item to add onto stack. */ - public function push(\WP_HTML_Token $stack_item) : void + public function push(\WP_HTML_Token $stack_item): void { } /** @@ -63930,7 +63930,7 @@ public function push(\WP_HTML_Token $stack_item) : void * @param WP_HTML_Token $token The node to remove from the stack of open elements. * @return bool Whether the node was found and removed from the stack of open elements. */ - public function remove_node(\WP_HTML_Token $token) : bool + public function remove_node(\WP_HTML_Token $token): bool { } /** @@ -63994,7 +63994,7 @@ public function walk_up(?\WP_HTML_Token $above_this_node = \null) * * @param WP_HTML_Token $item Element that was added to the stack of open elements. */ - public function after_element_push(\WP_HTML_Token $item) : void + public function after_element_push(\WP_HTML_Token $item): void { } /** @@ -64010,7 +64010,7 @@ public function after_element_push(\WP_HTML_Token $item) : void * * @param WP_HTML_Token $item Element that was removed from the stack of open elements. */ - public function after_element_pop(\WP_HTML_Token $item) : void + public function after_element_pop(\WP_HTML_Token $item): void { } /** @@ -64024,7 +64024,7 @@ public function after_element_pop(\WP_HTML_Token $item) : void * * @since 6.7.0 */ - public function clear_to_table_context() : void + public function clear_to_table_context(): void { } /** @@ -64038,7 +64038,7 @@ public function clear_to_table_context() : void * * @since 6.7.0 */ - public function clear_to_table_body_context() : void + public function clear_to_table_body_context(): void { } /** @@ -64052,7 +64052,7 @@ public function clear_to_table_body_context() : void * * @since 6.7.0 */ - public function clear_to_table_row_context() : void + public function clear_to_table_row_context(): void { } /** @@ -65056,7 +65056,7 @@ public function __construct($html) * @return bool Whether the namespace was valid and changed. * @phpstan-param 'html'|'svg'|'math' $new_namespace */ - public function change_parsing_namespace(string $new_namespace) : bool + public function change_parsing_namespace(string $new_namespace): bool { } /** @@ -65083,7 +65083,7 @@ public function change_parsing_namespace(string $new_namespace) : bool * tag_closers?: string|null, * } $query */ - public function next_tag($query = \null) : bool + public function next_tag($query = \null): bool { } /** @@ -65114,7 +65114,7 @@ public function next_tag($query = \null) : bool * * @return bool Whether a token was parsed. */ - public function next_token() : bool + public function next_token(): bool { } /** @@ -65131,7 +65131,7 @@ public function next_token() : bool * * @return bool Whether the parse paused at the start of an incomplete token. */ - public function paused_at_incomplete_token() : bool + public function paused_at_incomplete_token(): bool { } /** @@ -65162,7 +65162,7 @@ public function class_list() * @param string $wanted_class Look for this CSS class name, ASCII case-insensitive. * @return bool|null Whether the matched tag contains the given class name, or null if not matched. */ - public function has_class($wanted_class) : ?bool + public function has_class($wanted_class): ?bool { } /** @@ -65245,7 +65245,7 @@ public function has_class($wanted_class) : ?bool * @param string $name Identifies this particular bookmark. * @return bool Whether the bookmark was successfully created. */ - public function set_bookmark($name) : bool + public function set_bookmark($name): bool { } /** @@ -65257,7 +65257,7 @@ public function set_bookmark($name) : bool * @param string $name Name of the bookmark to remove. * @return bool Whether the bookmark already existed before removal. */ - public function release_bookmark($name) : bool + public function release_bookmark($name): bool { } /** @@ -65268,7 +65268,7 @@ public function release_bookmark($name) : bool * @param string $bookmark_name Name to identify a bookmark that potentially exists. * @return bool Whether that bookmark exists. */ - public function has_bookmark($bookmark_name) : bool + public function has_bookmark($bookmark_name): bool { } /** @@ -65282,7 +65282,7 @@ public function has_bookmark($bookmark_name) : bool * @param string $bookmark_name Jump to the place in the document identified by this bookmark name. * @return bool Whether the internal cursor was successfully moved to the bookmark's location. */ - public function seek($bookmark_name) : bool + public function seek($bookmark_name): bool { } /** @@ -65333,7 +65333,7 @@ public function get_attribute($name) * @param string $prefix Prefix of requested attribute names. * @return array|null List of attribute names, or `null` when no tag opener is matched. */ - public function get_attribute_names_with_prefix($prefix) : ?array + public function get_attribute_names_with_prefix($prefix): ?array { } /** @@ -65344,7 +65344,7 @@ public function get_attribute_names_with_prefix($prefix) : ?array * @return string One of 'html', 'math', or 'svg'. * @phpstan-return 'html'|'math'|'svg' */ - public function get_namespace() : string + public function get_namespace(): string { } /** @@ -65363,7 +65363,7 @@ public function get_namespace() : string * * @return string|null Name of currently matched tag in input HTML, or `null` if none found. */ - public function get_tag() : ?string + public function get_tag(): ?string { } /** @@ -65374,7 +65374,7 @@ public function get_tag() : ?string * * @return string|null Name of current tag name. */ - public function get_qualified_tag_name() : ?string + public function get_qualified_tag_name(): ?string { } /** @@ -65387,7 +65387,7 @@ public function get_qualified_tag_name() : ?string * * @return string|null */ - public function get_qualified_attribute_name($attribute_name) : ?string + public function get_qualified_attribute_name($attribute_name): ?string { } /** @@ -65407,7 +65407,7 @@ public function get_qualified_attribute_name($attribute_name) : ?string * * @return bool Whether the currently matched tag contains the self-closing flag. */ - public function has_self_closing_flag() : bool + public function has_self_closing_flag(): bool { } /** @@ -65427,7 +65427,7 @@ public function has_self_closing_flag() : bool * * @return bool Whether the current tag is a tag closer. */ - public function is_tag_closer() : bool + public function is_tag_closer(): bool { } /** @@ -65452,7 +65452,7 @@ public function is_tag_closer() : bool * * @return string|null What kind of token is matched, or null. */ - public function get_token_type() : ?string + public function get_token_type(): ?string { } /** @@ -65475,7 +65475,7 @@ public function get_token_type() : ?string * * @return string|null Name of the matched token. */ - public function get_token_name() : ?string + public function get_token_name(): ?string { } /** @@ -65497,7 +65497,7 @@ public function get_token_name() : ?string * * @return string|null */ - public function get_comment_type() : ?string + public function get_comment_type(): ?string { } /** @@ -65518,7 +65518,7 @@ public function get_comment_type() : ?string * @return string|null The comment text as it would appear in the browser or null * if not on a comment type node. */ - public function get_full_comment_text() : ?string + public function get_full_comment_text(): ?string { } /** @@ -65552,7 +65552,7 @@ public function get_full_comment_text() : ?string * * @return bool Whether the text node was subdivided. */ - public function subdivide_text_appropriately() : bool + public function subdivide_text_appropriately(): bool { } /** @@ -65583,7 +65583,7 @@ public function subdivide_text_appropriately() : bool * * @return string */ - public function get_modifiable_text() : string + public function get_modifiable_text(): string { } /** @@ -65632,7 +65632,7 @@ public function get_modifiable_text() : string * * @return bool Whether the text was able to update. */ - public function set_modifiable_text(string $plaintext_content) : bool + public function set_modifiable_text(string $plaintext_content): bool { } /** @@ -65651,7 +65651,7 @@ public function set_modifiable_text(string $plaintext_content) : bool * @param string|bool $value The new attribute value. * @return bool Whether an attribute value was set. */ - public function set_attribute($name, $value) : bool + public function set_attribute($name, $value): bool { } /** @@ -65662,7 +65662,7 @@ public function set_attribute($name, $value) : bool * @param string $name The attribute name to remove. * @return bool Whether an attribute was removed. */ - public function remove_attribute($name) : bool + public function remove_attribute($name): bool { } /** @@ -65673,7 +65673,7 @@ public function remove_attribute($name) : bool * @param string $class_name The class name to add. * @return bool Whether the class was set to be added. */ - public function add_class($class_name) : bool + public function add_class($class_name): bool { } /** @@ -65684,7 +65684,7 @@ public function add_class($class_name) : bool * @param string $class_name The class name to remove. * @return bool Whether the class was set to be removed. */ - public function remove_class($class_name) : bool + public function remove_class($class_name): bool { } /** @@ -65696,7 +65696,7 @@ public function remove_class($class_name) : bool * * @return string The processed HTML. */ - public function __toString() : string + public function __toString(): string { } /** @@ -65708,7 +65708,7 @@ public function __toString() : string * * @return string The processed HTML. */ - public function get_updated_html() : string + public function get_updated_html(): string { } /** @@ -65724,7 +65724,7 @@ public function get_updated_html() : string * @return WP_HTML_Doctype_Info|null The DOCTYPE declaration information or `null` if not * currently at a DOCTYPE node. */ - public function get_doctype_info() : ?\WP_HTML_Doctype_Info + public function get_doctype_info(): ?\WP_HTML_Doctype_Info { } /** @@ -66212,7 +66212,7 @@ public function __construct($html, $use_the_static_create_methods_instead = \nul * * @return string|null The last error, if one exists, otherwise null. */ - public function get_last_error() : ?string + public function get_last_error(): ?string { } /** @@ -66260,7 +66260,7 @@ public function get_unsupported_exception() * breadcrumbs?: string[], * } $query */ - public function next_tag($query = \null) : bool + public function next_tag($query = \null): bool { } /** @@ -66275,7 +66275,7 @@ public function next_tag($query = \null) : bool * * @return bool Whether a token was parsed. */ - public function next_token() : bool + public function next_token(): bool { } /** @@ -66294,7 +66294,7 @@ public function next_token() : bool * * @return bool Whether the current tag is a tag closer. */ - public function is_tag_closer() : bool + public function is_tag_closer(): bool { } /** @@ -66322,7 +66322,7 @@ public function is_tag_closer() : bool * May also contain the wildcard `*` which matches a single element, e.g. `array( 'SECTION', '*' )`. * @return bool Whether the currently-matched tag is found at the given nested structure. */ - public function matches_breadcrumbs($breadcrumbs) : bool + public function matches_breadcrumbs($breadcrumbs): bool { } /** @@ -66343,7 +66343,7 @@ public function matches_breadcrumbs($breadcrumbs) : bool * @return bool|null Whether to expect a closer for the currently-matched node, * or `null` if not matched on any token. */ - public function expects_closer(?\WP_HTML_Token $node = \null) : ?bool + public function expects_closer(?\WP_HTML_Token $node = \null): ?bool { } /** @@ -66359,7 +66359,7 @@ public function expects_closer(?\WP_HTML_Token $node = \null) : ?bool * @param string $node_to_process Whether to parse the next node or reprocess the current node. * @return bool Whether a tag was matched. */ - public function step($node_to_process = self::PROCESS_NEXT_NODE) : bool + public function step($node_to_process = self::PROCESS_NEXT_NODE): bool { } /** @@ -66378,7 +66378,7 @@ public function step($node_to_process = self::PROCESS_NEXT_NODE) : bool * * @return string[] Array of tag names representing path to matched node. */ - public function get_breadcrumbs() : array + public function get_breadcrumbs(): array { } /** @@ -66406,7 +66406,7 @@ public function get_breadcrumbs() : array * * @return int Nesting-depth of current location in the document. */ - public function get_current_depth() : int + public function get_current_depth(): int { } /** @@ -66447,7 +66447,7 @@ public function get_current_depth() : int * * @return string|null Normalized output, or `null` if unable to normalize. */ - public static function normalize(string $html) : ?string + public static function normalize(string $html): ?string { } /** @@ -66489,7 +66489,7 @@ public static function normalize(string $html) : ?string * @return string|null Normalized HTML markup represented by processor, * or `null` if unable to generate serialization. */ - public function serialize() : ?string + public function serialize(): ?string { } /** @@ -66505,7 +66505,7 @@ public function serialize() : ?string * * @return string Serialization of token, or empty string if no serialization exists. */ - protected function serialize_token() : string + protected function serialize_token(): string { } /** @@ -66513,7 +66513,7 @@ protected function serialize_token() : string * * @return string One of "html", "math", or "svg". */ - public function get_namespace() : string + public function get_namespace(): string { } /** @@ -66537,7 +66537,7 @@ public function get_namespace() : string * * @return string|null Name of currently matched tag in input HTML, or `null` if none found. */ - public function get_tag() : ?string + public function get_tag(): ?string { } /** @@ -66557,7 +66557,7 @@ public function get_tag() : ?string * * @return bool Whether the currently matched tag contains the self-closing flag. */ - public function has_self_closing_flag() : bool + public function has_self_closing_flag(): bool { } /** @@ -66580,7 +66580,7 @@ public function has_self_closing_flag() : bool * * @return string|null Name of the matched token. */ - public function get_token_name() : ?string + public function get_token_name(): ?string { } /** @@ -66605,7 +66605,7 @@ public function get_token_name() : ?string * * @return string|null What kind of token is matched, or null. */ - public function get_token_type() : ?string + public function get_token_type(): ?string { } /** @@ -66645,7 +66645,7 @@ public function get_attribute($name) * @param string|bool $value The new attribute value. * @return bool Whether an attribute value was set. */ - public function set_attribute($name, $value) : bool + public function set_attribute($name, $value): bool { } /** @@ -66656,7 +66656,7 @@ public function set_attribute($name, $value) : bool * @param string $name The attribute name to remove. * @return bool Whether an attribute was removed. */ - public function remove_attribute($name) : bool + public function remove_attribute($name): bool { } /** @@ -66685,7 +66685,7 @@ public function remove_attribute($name) : bool * @param string $prefix Prefix of requested attribute names. * @return array|null List of attribute names, or `null` when no tag opener is matched. */ - public function get_attribute_names_with_prefix($prefix) : ?array + public function get_attribute_names_with_prefix($prefix): ?array { } /** @@ -66696,7 +66696,7 @@ public function get_attribute_names_with_prefix($prefix) : ?array * @param string $class_name The class name to add. * @return bool Whether the class was set to be added. */ - public function add_class($class_name) : bool + public function add_class($class_name): bool { } /** @@ -66707,7 +66707,7 @@ public function add_class($class_name) : bool * @param string $class_name The class name to remove. * @return bool Whether the class was set to be removed. */ - public function remove_class($class_name) : bool + public function remove_class($class_name): bool { } /** @@ -66722,7 +66722,7 @@ public function remove_class($class_name) : bool * @param string $wanted_class Look for this CSS class name, ASCII case-insensitive. * @return bool|null Whether the matched tag contains the given class name, or null if not matched. */ - public function has_class($wanted_class) : ?bool + public function has_class($wanted_class): ?bool { } /** @@ -66764,7 +66764,7 @@ public function class_list() * * @return string */ - public function get_modifiable_text() : string + public function get_modifiable_text(): string { } /** @@ -66786,7 +66786,7 @@ public function get_modifiable_text() : string * * @return string|null */ - public function get_comment_type() : ?string + public function get_comment_type(): ?string { } /** @@ -66800,7 +66800,7 @@ public function get_comment_type() : ?string * @param string $bookmark_name Name of the bookmark to remove. * @return bool Whether the bookmark already existed before removal. */ - public function release_bookmark($bookmark_name) : bool + public function release_bookmark($bookmark_name): bool { } /** @@ -66820,7 +66820,7 @@ public function release_bookmark($bookmark_name) : bool * @param string $bookmark_name Jump to the place in the document identified by this bookmark name. * @return bool Whether the internal cursor was successfully moved to the bookmark's location. */ - public function seek($bookmark_name) : bool + public function seek($bookmark_name): bool { } /** @@ -66908,7 +66908,7 @@ public function seek($bookmark_name) : bool * @param string $bookmark_name Identifies this particular bookmark. * @return bool Whether the bookmark was successfully created. */ - public function set_bookmark($bookmark_name) : bool + public function set_bookmark($bookmark_name): bool { } /** @@ -66919,7 +66919,7 @@ public function set_bookmark($bookmark_name) : bool * @param string $bookmark_name Name to identify a bookmark that potentially exists. * @return bool Whether that bookmark exists. */ - public function has_bookmark($bookmark_name) : bool + public function has_bookmark($bookmark_name): bool { } /** @@ -66932,7 +66932,7 @@ public function has_bookmark($bookmark_name) : bool * @param WP_HTML_Token|string $tag_name Node to check, or only its name if in the HTML namespace. * @return bool Whether the element of the given name is in the special category. */ - public static function is_special($tag_name) : bool + public static function is_special($tag_name): bool { } /** @@ -66947,7 +66947,7 @@ public static function is_special($tag_name) : bool * @param string $tag_name Name of HTML tag to check. * @return bool Whether the given tag is an HTML Void Element. */ - public static function is_void($tag_name) : bool + public static function is_void($tag_name): bool { } /** @@ -66973,7 +66973,7 @@ public static function is_void($tag_name) : bool * @param string $label A string which may specify a known encoding. * @return string|null Known encoding if matched, otherwise null. */ - protected static function get_encoding(string $label) : ?string + protected static function get_encoding(string $label): ?string { } /* @@ -67438,7 +67438,7 @@ public function get_content_between_balanced_template_tags() * @param string $new_content The string to replace the content between the matching tags. * @return bool Whether the content was successfully replaced. */ - public function set_content_between_balanced_tags(string $new_content) : bool + public function set_content_between_balanced_tags(string $new_content): bool { } /** @@ -67452,7 +67452,7 @@ public function set_content_between_balanced_tags(string $new_content) : bool * @param string $new_content The string to append after the closing template tag. * @return bool Whether the content was successfully appended. */ - public function append_content_after_template_tag_closer(string $new_content) : bool + public function append_content_after_template_tag_closer(string $new_content): bool { } /** @@ -67470,7 +67470,7 @@ public function append_content_after_template_tag_closer(string $new_content) : * * @return bool Whether the foreign content was successfully skipped. */ - public function skip_to_tag_closer() : bool + public function skip_to_tag_closer(): bool { } /** @@ -67488,7 +67488,7 @@ public function skip_to_tag_closer() : bool * * @return bool Whether a matching closing tag was found. */ - public function next_balanced_tag_closer_tag() : bool + public function next_balanced_tag_closer_tag(): bool { } /** @@ -67500,7 +67500,7 @@ public function next_balanced_tag_closer_tag() : bool * * @return bool Whether the current tag has a closer tag. */ - public function has_and_visits_its_closer_tag() : bool + public function has_and_visits_its_closer_tag(): bool { } } @@ -67530,7 +67530,7 @@ final class WP_Interactivity_API * @return array The current state for the specified store namespace. This will be the updated state if a $state * argument was provided. */ - public function state(?string $store_namespace = \null, ?array $state = \null) : array + public function state(?string $store_namespace = \null, ?array $state = \null): array { } /** @@ -67548,7 +67548,7 @@ public function state(?string $store_namespace = \null, ?array $state = \null) : * @return array The configuration for the specified store namespace. This will be the updated configuration if a * $config argument was provided. */ - public function config(string $store_namespace, array $config = array()) : array + public function config(string $store_namespace, array $config = array()): array { } /** @@ -67577,7 +67577,7 @@ public function print_client_interactivity_data() * @param array $data Data to filter. * @return array Data for the Interactivity Router script module. */ - public function filter_script_module_interactivity_router_data(array $data) : array + public function filter_script_module_interactivity_router_data(array $data): array { } /** @@ -67591,7 +67591,7 @@ public function filter_script_module_interactivity_router_data(array $data) : ar * @param array $data Data to filter. * @return array Data for the Interactivity API script module. */ - public function filter_script_module_interactivity_data(array $data) : array + public function filter_script_module_interactivity_data(array $data): array { } /** @@ -67604,7 +67604,7 @@ public function filter_script_module_interactivity_data(array $data) : array * * @param string $store_namespace Optional. The unique store namespace identifier. */ - public function get_context(?string $store_namespace = \null) : array + public function get_context(?string $store_namespace = \null): array { } /** @@ -67616,7 +67616,7 @@ public function get_context(?string $store_namespace = \null) : array * * @return array{attributes: array}|null Current element. */ - public function get_element() : ?array + public function get_element(): ?array { } /** @@ -67646,7 +67646,7 @@ public function add_hooks() * @param string $html The HTML content to process. * @return string The processed HTML content. It returns the original content when the HTML contains unbalanced tags. */ - public function process_directives(string $html) : string + public function process_directives(string $html): string { } /** @@ -67686,7 +67686,7 @@ final class WP_Translation_Controller * * @return WP_Translation_Controller */ - public static function get_instance() : \WP_Translation_Controller + public static function get_instance(): \WP_Translation_Controller { } /** @@ -67696,7 +67696,7 @@ public static function get_instance() : \WP_Translation_Controller * * @return string Locale. */ - public function get_locale() : string + public function get_locale(): string { } /** @@ -67719,7 +67719,7 @@ public function set_locale(string $locale) * @param string $locale Optional. Locale. Default current locale. * @return bool True on success, false otherwise. */ - public function load_file(string $translation_file, string $textdomain = 'default', ?string $locale = \null) : bool + public function load_file(string $translation_file, string $textdomain = 'default', ?string $locale = \null): bool { } /** @@ -67732,7 +67732,7 @@ public function load_file(string $translation_file, string $textdomain = 'defaul * @param string $locale Optional. Locale. Defaults to all locales. * @return bool True on success, false otherwise. */ - public function unload_file($file, string $textdomain = 'default', ?string $locale = \null) : bool + public function unload_file($file, string $textdomain = 'default', ?string $locale = \null): bool { } /** @@ -67744,7 +67744,7 @@ public function unload_file($file, string $textdomain = 'default', ?string $loca * @param string $locale Optional. Locale. Defaults to all locales. * @return bool True on success, false otherwise. */ - public function unload_textdomain(string $textdomain = 'default', ?string $locale = \null) : bool + public function unload_textdomain(string $textdomain = 'default', ?string $locale = \null): bool { } /** @@ -67756,7 +67756,7 @@ public function unload_textdomain(string $textdomain = 'default', ?string $local * @param string $locale Optional. Locale. Default current locale. * @return bool True if there are any loaded translations, false otherwise. */ - public function is_textdomain_loaded(string $textdomain = 'default', ?string $locale = \null) : bool + public function is_textdomain_loaded(string $textdomain = 'default', ?string $locale = \null): bool { } /** @@ -67808,7 +67808,7 @@ public function translate_plural(array $plurals, int $number, string $context = * @param string $textdomain Optional. Text domain. Default 'default'. * @return array Headers. */ - public function get_headers(string $textdomain = 'default') : array + public function get_headers(string $textdomain = 'default'): array { } /** @@ -67819,7 +67819,7 @@ public function get_headers(string $textdomain = 'default') : array * @param string $textdomain Optional. Text domain. Default 'default'. * @return array Entries. */ - public function get_entries(string $textdomain = 'default') : array + public function get_entries(string $textdomain = 'default'): array { } /** @@ -67832,7 +67832,7 @@ public function get_entries(string $textdomain = 'default') : array * @param ?string $locale Optional. Locale. Default current locale. * @return bool True if the translation exists, false otherwise. */ - public function has_translation(string $singular, string $textdomain = 'default', ?string $locale = \null) : bool + public function has_translation(string $singular, string $textdomain = 'default', ?string $locale = \null): bool { } } @@ -67926,7 +67926,7 @@ public static function transform(string $file, string $filetype) * * @return array Headers. */ - public function headers() : array + public function headers(): array { } /** @@ -67936,7 +67936,7 @@ public function headers() : array * * @return array Entries. */ - public function entries() : array + public function entries(): array { } /** @@ -67956,7 +67956,7 @@ public function error() * * @return string File name. */ - public function get_file() : string + public function get_file(): string { } /** @@ -67978,7 +67978,7 @@ public function translate(string $text) * @param int $number Count. * @return int Plural form. */ - public function get_plural_form(int $number) : int + public function get_plural_form(int $number): int { } /** @@ -67989,7 +67989,7 @@ public function get_plural_form(int $number) : int * @param string $header Plural-Forms header string. * @return string Plural forms expression. */ - protected function get_plural_expression_from_header(string $header) : string + protected function get_plural_expression_from_header(string $header): string { } /** @@ -68001,7 +68001,7 @@ protected function get_plural_expression_from_header(string $header) : string * @param string $expression Plural form expression. * @return callable(int $num): int Plural forms function. */ - protected function make_plural_form_function(string $expression) : callable + protected function make_plural_form_function(string $expression): callable { } /** @@ -68012,7 +68012,7 @@ protected function make_plural_form_function(string $expression) : callable * @param WP_Translation_File $source Source file. * @return bool True on success, false otherwise. */ - protected function import(\WP_Translation_File $source) : bool + protected function import(\WP_Translation_File $source): bool { } /** @@ -68020,7 +68020,7 @@ protected function import(\WP_Translation_File $source) : bool * * @since 6.5.0 */ - protected abstract function parse_file(); + abstract protected function parse_file(); /** * Exports translation contents as a string. * @@ -68028,7 +68028,7 @@ protected abstract function parse_file(); * * @return string Translation file contents. */ - public abstract function export(); + abstract public function export(); } /** * Class WP_Translation_File_MO. @@ -68073,7 +68073,7 @@ protected function detect_endian_and_validate_file(string $header) * * @return bool True on success, false otherwise. */ - protected function parse_file() : bool + protected function parse_file(): bool { } /** @@ -68083,7 +68083,7 @@ protected function parse_file() : bool * * @return string Translation file contents. */ - public function export() : string + public function export(): string { } } @@ -68110,7 +68110,7 @@ protected function parse_file() * * @return string Translation file contents. */ - public function export() : string + public function export(): string { } } @@ -75113,7 +75113,7 @@ protected function get_transient_key($query_args) */ class WP_REST_Plugins_Controller extends \WP_REST_Controller { - const PATTERN = '[^.\\/]+(?:\\/[^.\\/]+)?'; + const PATTERN = '[^.\/]+(?:\/[^.\/]+)?'; /** * Plugins controller constructor. * @@ -76769,7 +76769,7 @@ class WP_REST_Themes_Controller extends \WP_REST_Controller * Matches theme's directory: `/themes///` or `/themes//`. * Excludes invalid directory name characters: `/:<>*?"|`. */ - const PATTERN = '[^\\/:<>\\*\\?"\\|]+(?:\\/[^\\/:<>\\*\\?"\\|]+)?'; + const PATTERN = '[^\/:<>\*\?"\|]+(?:\/[^\/:<>\*\?"\|]+)?'; /** * Constructor. * @@ -77783,7 +77783,7 @@ abstract class WP_REST_Meta_Fields * @return string One of 'post', 'comment', 'term', 'user', or anything * else supported by `_get_meta_table()`. */ - protected abstract function get_meta_type(); + abstract protected function get_meta_type(); /** * Retrieves the object meta subtype. * @@ -77801,7 +77801,7 @@ protected function get_meta_subtype() * * @return string The REST field type, such as post type name, taxonomy name, 'comment', or `user`. */ - protected abstract function get_rest_field_type(); + abstract protected function get_rest_field_type(); /** * Registers the meta field. * @@ -78247,7 +78247,7 @@ public function get_subtypes() * an array of found IDs and `WP_REST_Search_Handler::RESULT_TOTAL` containing the * total count for the matching search results. */ - public abstract function search_items(\WP_REST_Request $request); + abstract public function search_items(\WP_REST_Request $request); /** * Prepares the search result for a given ID. * @@ -78258,7 +78258,7 @@ public abstract function search_items(\WP_REST_Request $request); * @param array $fields Fields to include for the item. * @return array Associative array containing all fields for the item. */ - public abstract function prepare_item($id, array $fields); + abstract public function prepare_item($id, array $fields); /** * Prepares links for the search result of a given ID. * @@ -78268,7 +78268,7 @@ public abstract function prepare_item($id, array $fields); * @param int|string $id Item ID. * @return array Links for the given item. */ - public abstract function prepare_item_links($id); + abstract public function prepare_item_links($id); } /** * Core class representing a search handler for post formats in the REST API. @@ -78605,7 +78605,7 @@ abstract class WP_Sitemaps_Provider * @param string $object_subtype Optional. Object subtype name. Default empty. * @return array[] Array of URL information for a sitemap. */ - public abstract function get_url_list($page_num, $object_subtype = ''); + abstract public function get_url_list($page_num, $object_subtype = ''); /** * Gets the max number of pages available for the object type. * @@ -78614,7 +78614,7 @@ public abstract function get_url_list($page_num, $object_subtype = ''); * @param string $object_subtype Optional. Object subtype. Default empty. * @return int Total number of pages. */ - public abstract function get_max_num_pages($object_subtype = ''); + abstract public function get_max_num_pages($object_subtype = ''); /** * Gets data about each sitemap type. * @@ -80371,7 +80371,7 @@ public function update($new_instance, $old_instance) * * @param array $instance Widget instance props. */ - public abstract function render_media($instance); + abstract public function render_media($instance); /** * Outputs the settings update form. * @@ -80383,7 +80383,7 @@ public abstract function render_media($instance); * * @param array $instance Current settings. */ - public final function form($instance) + final public function form($instance) { } /** @@ -107318,7 +107318,7 @@ function wp_render_elements_support($block_content, $block) * @param array $parsed_block The parsed block. * @return array The same parsed block. */ - function wp_interactivity_process_directives_of_interactive_blocks(array $parsed_block) : array + function wp_interactivity_process_directives_of_interactive_blocks(array $parsed_block): array { } /** @@ -114231,7 +114231,7 @@ function wp_is_heic_image_mime_type($mime_type) * @param string $message The message to hash. * @return string The hash of the message. */ - function wp_fast_hash(string $message) : string + function wp_fast_hash(string $message): string { } /** @@ -114249,7 +114249,7 @@ function wp_fast_hash(string $message) : string * @param string $hash Hash of the message to check against. * @return bool Whether the message matches the hashed message. */ - function wp_verify_fast_hash(string $message, string $hash) : bool + function wp_verify_fast_hash(string $message, string $hash): bool { } /** @@ -114266,7 +114266,7 @@ function wp_verify_fast_hash(string $message, string $hash) : bool * * @return string The generated unique ID for the array. */ - function wp_unique_id_from_values(array $data, string $prefix = '') : string + function wp_unique_id_from_values(array $data, string $prefix = ''): string { } /** @@ -117369,7 +117369,7 @@ function wp_update_https_migration_required($old_url, $new_url) * * @return WP_Interactivity_API The main WP_Interactivity_API instance. */ - function wp_interactivity() : \WP_Interactivity_API + function wp_interactivity(): \WP_Interactivity_API { } /** @@ -117381,7 +117381,7 @@ function wp_interactivity() : \WP_Interactivity_API * @param string $html The HTML content to process. * @return string The processed HTML content. It returns the original content when the HTML contains unbalanced tags. */ - function wp_interactivity_process_directives(string $html) : string + function wp_interactivity_process_directives(string $html): string { } /** @@ -117403,7 +117403,7 @@ function wp_interactivity_process_directives(string $html) : string * @return array The state for the specified store namespace. This will be the updated state if a $state argument was * provided. */ - function wp_interactivity_state(?string $store_namespace = \null, array $state = array()) : array + function wp_interactivity_state(?string $store_namespace = \null, array $state = array()): array { } /** @@ -117421,7 +117421,7 @@ function wp_interactivity_state(?string $store_namespace = \null, array $state = * @return array The configuration for the specified store namespace. This will be the updated configuration if a * $config argument was provided. */ - function wp_interactivity_config(string $store_namespace, array $config = array()) : array + function wp_interactivity_config(string $store_namespace, array $config = array()): array { } /** @@ -117443,7 +117443,7 @@ function wp_interactivity_config(string $store_namespace, array $config = array( * @return string A complete `data-wp-context` directive with a JSON encoded value representing the context array and * the store namespace if specified. */ - function wp_interactivity_data_wp_context(array $context, string $store_namespace = '') : string + function wp_interactivity_data_wp_context(array $context, string $store_namespace = ''): string { } /** @@ -117460,7 +117460,7 @@ function wp_interactivity_data_wp_context(array $context, string $store_namespac * @param string $store_namespace Optional. The unique store namespace identifier. * @return array The context for the specified store namespace. */ - function wp_interactivity_get_context(?string $store_namespace = \null) : array + function wp_interactivity_get_context(?string $store_namespace = \null): array { } /** @@ -117472,7 +117472,7 @@ function wp_interactivity_get_context(?string $store_namespace = \null) : array * * @return array{attributes: array}|null Current element. */ - function wp_interactivity_get_element() : ?array + function wp_interactivity_get_element(): ?array { } function get_file($path) @@ -119114,7 +119114,7 @@ function wp_get_word_count_type() * @param ?string $locale Optional. Locale. Default current locale. * @return bool True if the translation exists, false otherwise. */ - function has_translation(string $singular, string $textdomain = 'default', ?string $locale = \null) : bool + function has_translation(string $singular, string $textdomain = 'default', ?string $locale = \null): bool { } /** @@ -122616,7 +122616,7 @@ function wp_filter_content_tags($content, $context = \null) * @param string $image The image tag markup being filtered. * @return string The filtered image tag markup. */ - function wp_img_tag_add_auto_sizes(string $image) : string + function wp_img_tag_add_auto_sizes(string $image): string { } /** @@ -122629,7 +122629,7 @@ function wp_img_tag_add_auto_sizes(string $image) : string * @param string $sizes_attr The 'sizes' attribute value. * @return bool True if the 'auto' keyword is present, false otherwise. */ - function wp_sizes_attribute_includes_valid_auto(string $sizes_attr) : bool + function wp_sizes_attribute_includes_valid_auto(string $sizes_attr): bool { } /** @@ -137219,7 +137219,7 @@ function wp_remove_surrounding_empty_script_tags($contents) * * @return WP_Script_Modules The main WP_Script_Modules instance. */ - function wp_script_modules() : \WP_Script_Modules + function wp_script_modules(): \WP_Script_Modules { } /** @@ -137698,7 +137698,7 @@ function get_sitemap_url($name, $subtype_name = '', $page = 1) * @return array|null Associative array with 'mode' and 'eagerness' keys, or null if speculative * loading is disabled. */ - function wp_get_speculation_rules_configuration() : ?array + function wp_get_speculation_rules_configuration(): ?array { } /** @@ -137716,7 +137716,7 @@ function wp_get_speculation_rules_configuration() : ?array * @return WP_Speculation_Rules|null Object representing the speculation rules to use, or null if speculative loading * is disabled in the current context. */ - function wp_get_speculation_rules() : ?\WP_Speculation_Rules + function wp_get_speculation_rules(): ?\WP_Speculation_Rules { } /** @@ -137728,7 +137728,7 @@ function wp_get_speculation_rules() : ?\WP_Speculation_Rules * @access private * @phpstan-return void */ - function wp_print_speculation_rules() : void + function wp_print_speculation_rules(): void { } /**