Skip to content

Commit

Permalink
Merge branch '4.x' into upstream-master
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Jan 3, 2022
2 parents 87977e4 + 13980b5 commit c1acab4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dictionaries/CallMap.php
Expand Up @@ -15115,7 +15115,7 @@
'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'],
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_historical.php
Expand Up @@ -16145,7 +16145,7 @@
'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'],
Expand Down
3 changes: 3 additions & 0 deletions psalm-baseline.xml
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions src/Psalm/Type/Atomic/THtmlEscapedString.php
Expand Up @@ -4,6 +4,7 @@

/**
* Special type, specifically for consumption by plugins.
* @deprecated going to be removed in Psalm 5. Use taints instead.
*/
class THtmlEscapedString extends TString
{
Expand Down
2 changes: 1 addition & 1 deletion stubs/pdo.phpstub
Expand Up @@ -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
Expand Down

0 comments on commit c1acab4

Please sign in to comment.