diff --git a/functionMap.php b/functionMap.php index 09beaec..e8b0277 100644 --- a/functionMap.php +++ b/functionMap.php @@ -281,6 +281,7 @@ 'wp_internal_hosts' => ['array'], 'wp_is_numeric_array' => ['($data is array ? true : false)', '@phpstan-pure' => ''], 'wp_is_post_revision' => ['($post is \WP_Post ? false|int<0, max> : ($post is int ? false : false|int<0, max>))'], + 'wp_is_stream' => [null, '@phpstan-assert-if-true' => '=non-falsy-string $path'], 'wp_is_uuid' => ['($version is 4|null ? bool : false)', 'uuid' => 'TUuid', 'version' => '4', '@phpstan-template TUuid' => 'of string', '@phpstan-assert-if-true' => '=TUuid&lowercase-string&non-falsy-string $uuid', '@phpstan-pure' => ''], 'wp_json_encode' => ['non-empty-string|false', 'depth' => 'int<1, max>'], 'wp_latest_comments_draft_or_post_title' => ['non-falsy-string'], diff --git a/tests/data/assert/wp-is-stream.php b/tests/data/assert/wp-is-stream.php new file mode 100644 index 0000000..9de123f --- /dev/null +++ b/tests/data/assert/wp-is-stream.php @@ -0,0 +1,38 @@ +