1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Merge pull request #6847 from orklah/vprintf

add stub for taint detection on vprintf
This commit is contained in:
orklah 2021-11-07 15:55:54 +01:00 committed by GitHub
commit a2d6861f12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1018,6 +1018,13 @@ function wordwrap(string $string, int $width = 75, string $break = "\n", bool $c
*/ */
function printf(string $format, ...$values) : string {} function printf(string $format, ...$values) : string {}
/**
* @psalm-taint-specialize
* @psalm-taint-sink html $format
* @psalm-taint-sink html $values
*/
function vprintf(string $format, array $values) : int {}
/** /**
* @psalm-pure * @psalm-pure
* *