File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -204,4 +204,9 @@ public function testBug13201(): void
204
204
$ this ->analyse ([__DIR__ . '/data/bug-13201.php ' ], []);
205
205
}
206
206
207
+ public function testBug12119 (): void
208
+ {
209
+ $ this ->analyse ([__DIR__ . '/data/bug-12119.php ' ], []);
210
+ }
211
+
207
212
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Bug12119 ;
4
+
5
+ /** @phpstan-pure */
6
+ function testFunction (string $ s ): string { return '' ; }
7
+
8
+ class HelloWorld
9
+ {
10
+ /** @phpstan-pure */
11
+ public function testMethod (string $ s ): string { return '' ; }
12
+
13
+ /** @phpstan-pure */
14
+ public function sayHello (string $ s ): string
15
+ {
16
+ $ a = $ this ->testMethod ('random_int ' );
17
+ $ b = testFunction ('random_int ' );
18
+
19
+ return $ a . $ b ;
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments