diff --git a/functionMap.php b/functionMap.php index 20ed32f7..81290072 100644 --- a/functionMap.php +++ b/functionMap.php @@ -181,6 +181,7 @@ 'newblog_notify_siteadmin' => [null, 'deprecated' => "''"], 'next_posts' => ['($display is true ? void : string)'], 'paginate_links' => ["(\$args is array{total: int}&array ? void : (\$args is array{type: 'array'}&array ? list : string))"], + 'path_is_absolute' => ['($path is non-falsy-string ? bool : false)', '@phpstan-assert-if-true =non-falsy-string $path' => ''], 'path_join' => ['non-falsy-string'], 'post_type_archive_title' => ['($display is true ? void : string|void)'], 'prep_atom_text_construct' => ["array{'html'|'text'|'xhtml', string}"], diff --git a/tests/data/assert/path-is-absolute.php b/tests/data/assert/path-is-absolute.php new file mode 100644 index 00000000..416d2207 --- /dev/null +++ b/tests/data/assert/path-is-absolute.php @@ -0,0 +1,24 @@ +