Skip to content

Commit

Permalink
fix CoreGenericFunctions.phpstub not falling back to callmap
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Jun 9, 2023
1 parent 98d1563 commit 1465ed7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ function sprintf(string $format, ...$values) {}

/**
* @psalm-pure
* @param array<string|int|float> $values
* @return string|false
* @psalm-ignore-falsable-return
*
Expand All @@ -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
Expand All @@ -1317,6 +1319,9 @@ function wordwrap(string $string, int $width = 75, string $break = "\n", bool $c
function printf(string $format, ...$values) {}

/**
* @param array<string|int|float> $values
* @return int<0, max>
*
* @psalm-pure
* @psalm-taint-specialize
* @psalm-taint-sink html $format
Expand Down

0 comments on commit 1465ed7

Please sign in to comment.