File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed
tests/PHPStan/Rules/Functions Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -2192,6 +2192,13 @@ public function testBug13065(): void
2192
2192
$ this ->analyse ([__DIR__ . '/data/bug-13065.php ' ], $ errors );
2193
2193
}
2194
2194
2195
+ public function testBug3506 (): void
2196
+ {
2197
+ $ this ->checkExplicitMixed = true ;
2198
+ $ this ->checkImplicitMixed = true ;
2199
+ $ this ->analyse ([__DIR__ . '/data/bug-3506.php ' ], []);
2200
+ }
2201
+
2195
2202
#[RequiresPhp('>= 8.0 ' )]
2196
2203
public function testBug12317 (): void
2197
2204
{
Original file line number Diff line number Diff line change
1
+ <?php declare (strict_types = 1 );
2
+
3
+ namespace Bug3506 ;
4
+
5
+ class A {
6
+ /**
7
+ * @phpstan-param \Closure(int, mixed...) : void $c
8
+ */
9
+ function dummy (\Closure $ c ) : void {
10
+
11
+ }
12
+
13
+ function dummy2 () : void {
14
+ $ this ->dummy (function (int $ a , ...$ args ) : void {
15
+ var_dump (...$ args );
16
+ });
17
+ }
18
+ }
You can’t perform that action at this time.
0 commit comments