diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 89b18d0a444..793150fbdfa 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -1292,7 +1292,7 @@ function preg_quote(string $str, ?string $delimiter = null) : string {} /** * @psalm-pure * - * @param string|int|float $values + * @param string|stringable-object|int|float $values * @return (PHP_MAJOR_VERSION is 8 ? string : string|false) * @psalm-ignore-falsable-return * diff --git a/stubs/Php80.phpstub b/stubs/Php80.phpstub index 9a70506d912..2f2d5bf0b9b 100644 --- a/stubs/Php80.phpstub +++ b/stubs/Php80.phpstub @@ -247,17 +247,6 @@ function get_headers(string $url, bool $associative = false, $context = null) : */ function pack(string $format, mixed ...$values): string {} -/** - * @psalm-pure - * - * @param string|Stringable|int|float $values - * @return (PHP_MAJOR_VERSION is 8 ? string : string|false) - * @psalm-ignore-falsable-return - * - * @psalm-flow ($format, $values) -> return - */ -function sprintf(string $format, ...$values) {} - final class CurlHandle { private function __construct()