Skip to content

Commit

Permalink
Deprecate THtmlEscapedString
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Jan 3, 2022
1 parent 36c7fec commit bb2fa79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions psalm-baseline.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@1c078136273a669d52d234251ddbae4cd0507d38">
<files psalm-version="dev-master">
<file src="examples/TemplateChecker.php">
<PossiblyUndefinedIntArrayOffset occurrences="2">
<code>$comment_block-&gt;tags['variablesfrom'][0]</code>
Expand Down Expand Up @@ -642,8 +642,9 @@
</DeprecatedClass>
</file>
<file src="src/Psalm/Type/Atomic.php">
<DeprecatedClass occurrences="1">
<DeprecatedClass occurrences="2">
<code>new TEmpty()</code>
<code>new THtmlEscapedString()</code>
</DeprecatedClass>
<PossiblyUndefinedIntArrayOffset occurrences="1">
<code>array_keys($template_type_map[$value])[0]</code>
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

0 comments on commit bb2fa79

Please sign in to comment.