From 74976ad30fac0a591390212340a9508009157921 Mon Sep 17 00:00:00 2001 From: kkmuffme <11071985+kkmuffme@users.noreply.github.com> Date: Fri, 9 Jun 2023 12:55:23 +0200 Subject: [PATCH] fix CoreGenericFunctions.phpstub not falling back to callmap --- stubs/CoreGenericFunctions.phpstub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 7224916963e..7e11b75bca2 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -1289,6 +1289,7 @@ function sprintf(string $format, ...$values) {} /** * @psalm-pure + * @param array $values * @return string|false * @psalm-ignore-falsable-return * @@ -1308,6 +1309,7 @@ function wordwrap(string $string, int $width = 75, string $break = "\n", bool $c * @psalm-pure * * @param string|int|float $values + * @return int<0, max> * * @psalm-taint-specialize * @psalm-flow ($format, $values) -> return @@ -1317,6 +1319,9 @@ function wordwrap(string $string, int $width = 75, string $break = "\n", bool $c function printf(string $format, ...$values) {} /** + * @param array $values + * @return int<0, max> + * * @psalm-pure * @psalm-taint-specialize * @psalm-taint-sink html $format