Blame view

addons/fastflow/library/laminas-escaper/psalm-baseline.xml 2.24 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  <?xml version="1.0" encoding="UTF-8"?>
  <files psalm-version="3.18.2@19aa905f7c3c7350569999a93c40ae91ae4e1626">
    <file src="src/Escaper.php">
      <MixedArgument occurrences="10">
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
      </MixedArgument>
      <MixedArgumentTypeCoercion occurrences="3">
        <code>$this-&gt;cssMatcher</code>
        <code>$this-&gt;htmlAttrMatcher</code>
        <code>$this-&gt;jsMatcher</code>
      </MixedArgumentTypeCoercion>
      <MixedAssignment occurrences="3">
        <code>$chr</code>
        <code>$chr</code>
        <code>$chr</code>
      </MixedAssignment>
      <MixedOperand occurrences="1">
        <code>static::$htmlNamedEntityMap[$ord]</code>
      </MixedOperand>
      <PossiblyInvalidArgument occurrences="1">
        <code>$from</code>
      </PossiblyInvalidArgument>
    </file>
    <file src="test/EscaperTest.php">
      <InvalidReturnStatement occurrences="5"/>
      <InvalidReturnType occurrences="5">
        <code>array&lt;string, array{0: string, 1: string}&gt;</code>
        <code>array&lt;string, array{0: string, 1: string}&gt;</code>
        <code>array&lt;string, array{0: string, 1: string}&gt;</code>
        <code>array&lt;string, array{0: string, 1: string}&gt;</code>
        <code>array&lt;string, array{0: string}&gt;</code>
      </InvalidReturnType>
      <MissingReturnType occurrences="9">
        <code>testCssEscapingReturnsStringIfContainsOnlyDigits</code>
        <code>testCssEscapingReturnsStringIfZeroLength</code>
        <code>testHtmlAttributeEscapingEscapesOwaspRecommendedRanges</code>
        <code>testJavascriptEscapingReturnsStringIfContainsOnlyDigits</code>
        <code>testJavascriptEscapingReturnsStringIfZeroLength</code>
        <code>testReturnsEncodingFromGetter</code>
        <code>testSettingEncodingToEmptyStringShouldThrowException</code>
        <code>testSettingEncodingToInvalidValueShouldThrowException</code>
        <code>testUnicodeCodepointConversionToUtf8</code>
      </MissingReturnType>
    </file>
    <file src="vendor/symfony/polyfill-mbstring/bootstrap80.php">
      <ParseError occurrences="1">
        <code>=</code>
      </ParseError>
    </file>
  </files>