Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functionMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
'is_email' => [null, 'deprecated' => 'false'],
'is_new_day' => ['0|1'],
'is_term' => ["(\$term is 0 ? 0 : (\$term is '' ? null : (\$taxonomy is '' ? string|null : array{term_id: string, term_taxonomy_id: string}|null)))"],
'is_wp_error' => ['($thing is \WP_Error ? true : false)', '@phpstan-assert-if-true' => '\WP_Error $thing'],
'is_wp_error' => ['($thing is \WP_Error ? true : false)'],
'load_plugin_textdomain' => [null, 'deprecated' => 'false'],
'maybe_serialize' => ['(T is array|object|string ? string : T)', '@phpstan-template T' => 'of mixed', 'data' => 'T'],
'mysql2date' => ["(\$format is 'G'|'U' ? int|false : string|false)"],
Expand Down
22 changes: 0 additions & 22 deletions tests/data/assert/is-wp-error.php

This file was deleted.

1 change: 0 additions & 1 deletion wordpress-stubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -140554,7 +140554,6 @@ function wp_doing_cron()
* @return bool Whether the variable is an instance of WP_Error.
*
* @phpstan-assert-if-true WP_Error $thing
* @phpstan-assert-if-true \WP_Error $thing
* @phpstan-return ($thing is \WP_Error ? true : false)
*/
function is_wp_error($thing)
Expand Down
Loading