1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Merge branch '4.x' into upstream-master

This commit is contained in:
Bruce Weirdan 2022-01-03 22:06:12 +02:00
commit c1acab4606
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D
5 changed files with 7 additions and 3 deletions

View File

@ -15115,7 +15115,7 @@ return [
'UnexpectedValueException::getPrevious' => ['Throwable|UnexpectedValueException|null'],
'UnexpectedValueException::getTrace' => ['list<array<string,mixed>>'],
'UnexpectedValueException::getTraceAsString' => ['string'],
'uniqid' => ['string', 'prefix='=>'string', 'more_entropy='=>'bool'],
'uniqid' => ['non-empty-string', 'prefix='=>'string', 'more_entropy='=>'bool'],
'unixtojd' => ['int', 'timestamp='=>'int'],
'unlink' => ['bool', 'filename'=>'string', 'context='=>'resource'],
'unpack' => ['array|false', 'format'=>'string', 'string'=>'string', 'offset='=>'int'],

View File

@ -16145,7 +16145,7 @@ return [
'ui\window::setTitle' => ['', 'title'=>'string'],
'uksort' => ['bool', '&rw_array'=>'array', 'callback'=>'callable(mixed,mixed):int'],
'umask' => ['int', 'mask='=>'int'],
'uniqid' => ['string', 'prefix='=>'string', 'more_entropy='=>'bool'],
'uniqid' => ['non-empty-string', 'prefix='=>'string', 'more_entropy='=>'bool'],
'unixtojd' => ['int', 'timestamp='=>'int'],
'unlink' => ['bool', 'filename'=>'string', 'context='=>'resource'],
'unpack' => ['array', 'format'=>'string', 'string'=>'string'],

View File

@ -353,6 +353,9 @@
</PossiblyUndefinedIntArrayOffset>
</file>
<file src="src/Psalm/Type/Atomic.php">
<DeprecatedClass occurrences="2">
<code>new THtmlEscapedString()</code>
</DeprecatedClass>
<PossiblyUndefinedIntArrayOffset occurrences="1">
<code>array_keys($template_type_map[$value])[0]</code>
</PossiblyUndefinedIntArrayOffset>

View File

@ -4,6 +4,7 @@ namespace Psalm\Type\Atomic;
/**
* Special type, specifically for consumption by plugins.
* @deprecated going to be removed in Psalm 5. Use taints instead.
*/
class THtmlEscapedString extends TString
{

View File

@ -10,7 +10,7 @@ class PDOStatement implements Traversable
/**
* @psalm-taint-sink callable $class
*
* @template T
* @template T of object
* @param class-string<T> $class
* @param array $ctorArgs
* @return false|T