Skip to content

Commit 8ffa0f2

Browse files
committed
Regression test
1 parent cfa16c6 commit 8ffa0f2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php // lint >= 8.1
2+
3+
namespace Bug9224b;
4+
5+
use function PHPStan\Testing\assertType;
6+
7+
class Foo
8+
{
9+
10+
/** @param array<int> $arr */
11+
public function sayHello(array $arr): void
12+
{
13+
assertType('array<int<0, max>>', array_map('abs', $arr));
14+
assertType('array<int<0, max>>', array_map(abs(...), $arr));
15+
}
16+
17+
}

0 commit comments

Comments
 (0)