Skip to content

Commit be0e6a3

Browse files
committed
[Php81] Handle crash on normal array with variadic inside class on ArrayToFirstClassCallableRector
1 parent 4273c16 commit be0e6a3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace Rector\Tests\Php81\Rector\Array_\ArrayToFirstClassCallableRector\Fixture;
4+
5+
final class SkipNormalArrayWithVariadic
6+
{
7+
private function foo(mixed ...$args): void {}
8+
9+
public function test(): void
10+
{
11+
$this->foo('first', ['key' => 'value'], c: 'test');
12+
}
13+
}

0 commit comments

Comments
 (0)