|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<files psalm-version="3.10.1@eeed5ecccc10131397f0eb7ee6da810c0be3a7fc"> |
3 | | - <file src="src/Frame.php"> |
4 | | - <LessSpecificReturnStatement occurrences="1"> |
5 | | - <code>$this->frame</code> |
6 | | - </LessSpecificReturnStatement> |
7 | | - <MixedAssignment occurrences="1"> |
8 | | - <code>$file</code> |
9 | | - </MixedAssignment> |
10 | | - <MixedInferredReturnType occurrences="1"> |
11 | | - <code>?string</code> |
12 | | - </MixedInferredReturnType> |
13 | | - <MixedReturnStatement occurrences="1"> |
14 | | - <code>$file</code> |
15 | | - </MixedReturnStatement> |
16 | | - <MoreSpecificReturnType occurrences="1"> |
17 | | - <code>array{file: string, line: int, class: string, args: array{array-key: mixed}, function: string}</code> |
18 | | - </MoreSpecificReturnType> |
19 | | - <PossiblyNullArrayAccess occurrences="2"> |
20 | | - <code>$matches[1]</code> |
21 | | - <code>$matches[2]</code> |
22 | | - </PossiblyNullArrayAccess> |
23 | | - <PropertyTypeCoercion occurrences="2"> |
24 | | - <code>$this->frame</code> |
25 | | - <code>$this->frame</code> |
26 | | - </PropertyTypeCoercion> |
27 | | - </file> |
28 | | - <file src="src/FrameCollection.php"> |
29 | | - <ArgumentTypeCoercion occurrences="1"> |
30 | | - <code>$frame</code> |
31 | | - </ArgumentTypeCoercion> |
32 | | - <InvalidOperand occurrences="1"> |
33 | | - <code>$offset</code> |
34 | | - </InvalidOperand> |
35 | | - <InvalidPropertyAssignmentValue occurrences="1"/> |
36 | | - <MixedArgumentTypeCoercion occurrences="1"> |
37 | | - <code>$callable</code> |
38 | | - </MixedArgumentTypeCoercion> |
39 | | - <MixedAssignment occurrences="1"> |
40 | | - <code>$frame</code> |
41 | | - </MixedAssignment> |
42 | | - <MixedReturnTypeCoercion occurrences="2"> |
43 | | - <code>new ArrayIterator($this->getArray())</code> |
44 | | - <code>\ArrayIterator<int, \Narrowspark\ExceptionInspector\Frame></code> |
45 | | - </MixedReturnTypeCoercion> |
46 | | - <TooManyTemplateParams occurrences="1"> |
47 | | - <code>\Narrowspark\ExceptionInspector\FrameCollection<\Narrowspark\ExceptionInspector\Frame></code> |
48 | | - </TooManyTemplateParams> |
| 2 | +<files psalm-version="3.11.2@d470903722cfcbc1cd04744c5491d3e6d13ec3d9"> |
| 3 | + <file src="src/Contract/Exception/UnexpectedValueException.php"> |
| 4 | + <UnusedClass occurrences="1"> |
| 5 | + <code>UnexpectedValueException</code> |
| 6 | + </UnusedClass> |
49 | 7 | </file> |
50 | 8 | <file src="src/Inspector.php"> |
51 | | - <ArgumentTypeCoercion occurrences="2"> |
52 | | - <code>$nextFrame</code> |
| 9 | + <InvalidArgument occurrences="1"> |
53 | 10 | <code>$frames</code> |
54 | | - </ArgumentTypeCoercion> |
55 | | - <DocblockTypeContradiction occurrences="1"> |
56 | | - <code>$this->previousExceptions === null</code> |
57 | | - </DocblockTypeContradiction> |
58 | | - <InvalidReturnStatement occurrences="1"/> |
59 | | - <InvalidReturnType occurrences="1"> |
60 | | - <code>int[]</code> |
61 | | - </InvalidReturnType> |
62 | | - <LessSpecificReturnStatement occurrences="1"> |
63 | | - <code>$docref</code> |
64 | | - </LessSpecificReturnStatement> |
65 | | - <MixedAssignment occurrences="5"> |
66 | | - <code>$file</code> |
67 | | - <code>$line</code> |
68 | | - <code>$frames[$k]['file']</code> |
69 | | - <code>$frames[$k]['line']</code> |
70 | | - <code>$docref['url']</code> |
71 | | - </MixedAssignment> |
72 | | - <MixedPropertyTypeCoercion occurrences="1"> |
73 | | - <code>new FrameCollection($frames)</code> |
74 | | - </MixedPropertyTypeCoercion> |
75 | | - <MixedReturnTypeCoercion occurrences="4"> |
76 | | - <code>$this->frames</code> |
77 | | - <code>\Narrowspark\ExceptionInspector\FrameCollection<\Narrowspark\ExceptionInspector\Frame></code> |
78 | | - <code>array_diff_key($stack, $trace)</code> |
79 | | - <code>list<array<string, mixed>></code> |
80 | | - </MixedReturnTypeCoercion> |
81 | | - <MoreSpecificReturnType occurrences="1"> |
82 | | - <code>array{message: string, url: null|string}</code> |
83 | | - </MoreSpecificReturnType> |
84 | | - <PossiblyNullArrayAccess occurrences="1"> |
85 | | - <code>$matches[1]</code> |
86 | | - </PossiblyNullArrayAccess> |
87 | | - <TooManyTemplateParams occurrences="2"> |
88 | | - <code>null|\Narrowspark\ExceptionInspector\FrameCollection<\Narrowspark\ExceptionInspector\Frame></code> |
89 | | - <code>\Narrowspark\ExceptionInspector\FrameCollection<\Narrowspark\ExceptionInspector\Frame></code> |
90 | | - </TooManyTemplateParams> |
| 11 | + </InvalidArgument> |
91 | 12 | </file> |
92 | 13 | <file src="tests/Unit/FrameCollectionTest.php"> |
93 | | - <ArgumentTypeCoercion occurrences="3"> |
94 | | - <code>$frames</code> |
95 | | - </ArgumentTypeCoercion> |
96 | | - <InvalidArgument occurrences="3"> |
| 14 | + <InvalidArgument occurrences="4"> |
97 | 15 | <code>'foo'</code> |
98 | 16 | </InvalidArgument> |
| 17 | + <InvalidReturnStatement occurrences="1"/> |
| 18 | + <InvalidReturnType occurrences="1"> |
| 19 | + <code>array{args: array{array-key: mixed}, class: string, file: string, function?: string, line: int}</code> |
| 20 | + </InvalidReturnType> |
99 | 21 | <MixedArgumentTypeCoercion occurrences="1"> |
100 | | - <code>$frameCollection2</code> |
| 22 | + <code>$frames</code> |
101 | 23 | </MixedArgumentTypeCoercion> |
102 | | - <MixedReturnTypeCoercion occurrences="2"> |
103 | | - <code>new FrameCollection($frames)</code> |
104 | | - <code>\Narrowspark\ExceptionInspector\FrameCollection<int, \Narrowspark\ExceptionInspector\Frame></code> |
105 | | - </MixedReturnTypeCoercion> |
106 | | - <RedundantCondition occurrences="2"> |
107 | | - <code>assertInstanceOf</code> |
| 24 | + <RedundantCondition occurrences="1"> |
108 | 25 | <code>assertNotSame</code> |
109 | 26 | </RedundantCondition> |
110 | 27 | <TooManyArguments occurrences="1"/> |
111 | | - <TooManyTemplateParams occurrences="1"> |
112 | | - <code>\Narrowspark\ExceptionInspector\FrameCollection<int, \Narrowspark\ExceptionInspector\Frame></code> |
113 | | - </TooManyTemplateParams> |
114 | 28 | </file> |
115 | 29 | <file src="tests/Unit/FrameTest.php"> |
116 | 30 | <ArgumentTypeCoercion occurrences="1"> |
117 | 31 | <code>$data</code> |
118 | 32 | </ArgumentTypeCoercion> |
119 | | - <InvalidDocblock occurrences="1"> |
120 | | - <code>public static function provideGetFileContentsWhenFrameIsNotRelatedToSpecificFileCases(): iterable</code> |
121 | | - </InvalidDocblock> |
122 | | - <MixedInferredReturnType occurrences="1"> |
123 | | - <code>iterable<array-key, array<array-key, string></code> |
124 | | - </MixedInferredReturnType> |
125 | | - <PossiblyInvalidCast occurrences="1"> |
126 | | - <code>$data['file']</code> |
127 | | - </PossiblyInvalidCast> |
128 | 33 | </file> |
129 | 34 | </files> |
0 commit comments