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

Merge pull request #7284 from weirdan/deprecate-html-escaped-string

This commit is contained in:
Bruce Weirdan 2022-01-03 22:04:54 +02:00 committed by GitHub
commit 13980b583b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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>
@ -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>

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
{