Skip to content

Commit 9d6f968

Browse files
committed
[Php85] Skip as assigned var on ArrayFirstLastRector
1 parent 52350dd commit 9d6f968

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+
declare(strict_types=1);
4+
5+
namespace Rector\Tests\Php85\Rector\ArrayDimFetch\ArrayFirstLastRector\Fixture;
6+
7+
final class SkipInWriteContext
8+
{
9+
public function run($result, $lastInsertedId)
10+
{
11+
$result[\array_key_first($result)] = $lastInsertedId;
12+
}
13+
}

0 commit comments

Comments
 (0)