Skip to content

Commit e69c429

Browse files
Update functionMap.php (#461)
* Update functionMap.php Apply changes to funcation map for #460 * Now including generated file * Update functionMap.php Remove trailing spaces
1 parent 1fa10da commit e69c429

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

functionMap.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
'get_terms' => ["(\$args is array{fields: 'count'}&array ? numeric-string : (\$args is array{fields: 'names'|'slugs'}&array ? list<string> : (\$args is array{fields: 'id=>name'|'id=>slug'}&array ? array<int, string> : (\$args is array{fields: 'id=>parent'}&array ? array<int, int> : (\$args is array{fields: 'ids'|'tt_ids'}&array ? list<int> : array<int, \WP_Term>)))))|\WP_Error", 'deprecated' => "''"],
157157
'get_the_author' => [null, 'deprecated' => "''"],
158158
'get_the_permalink' => ['($post is \WP_Post ? string : string|false)'],
159+
'get_transient' => [null, '@phpstan-impure' => ''],
159160
'get_user' => ['($user_id is int<min, 0> ? false : \WP_User|false)'],
160161
'get_user_by' => ["(\$field is 'id'|'ID' ? (\$value is int<min, 0> ? false : \WP_User|false) : \WP_User|false)"],
161162
'get_user_option' => [null, 'deprecated' => "''"],
@@ -295,6 +296,7 @@
295296
'wp_list_pages' => ['($args is array{echo: false}&array ? string : void)'],
296297
'wp_list_post_revisions' => ['void', 'type' => "'all'|'revision'|'autosave'"],
297298
'wp_loginout' => ['($display is true ? void : string)'],
299+
'wp_mail' => [null, '@phpstan-impure' => ''],
298300
'wp_media_insert_url_form' => ['non-falsy-string'],
299301
'wp_nav_menu_manage_columns' => ["array{_title: string, cb: '<input type=\"checkbox\" />', link-target: string, title-attribute: string, css-classes: string, xfn: string, description: string}"],
300302
'wp_next_scheduled' => [null, 'args' => $cronArgsType],

wordpress-stubs.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133044,6 +133044,7 @@ function delete_transient($transient)
133044133044
*
133045133045
* @param string $transient Transient name. Expected to not be SQL-escaped.
133046133046
* @return mixed Value of transient.
133047+
* @phpstan-impure
133047133048
*/
133048133049
function get_transient($transient)
133049133050
{
@@ -133743,6 +133744,7 @@ function cache_users($user_ids)
133743133744
* @param string|string[] $attachments Optional. Paths to files to attach.
133744133745
* @param string|string[] $embeds Optional. Paths to files to embed.
133745133746
* @return bool Whether the email was sent successfully.
133747+
* @phpstan-impure
133746133748
*/
133747133749
function wp_mail($to, $subject, $message, $headers = '', $attachments = array(), $embeds = array())
133748133750
{

0 commit comments

Comments
 (0)