Skip to content

Commit b3b3175

Browse files
phpstan-botclaude
andcommitted
Add non-regression test for phpstan/phpstan#13857
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 390360d commit b3b3175

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
declare(strict_types = 1);
4+
5+
namespace Bug13857;
6+
7+
use function PHPStan\Testing\assertType;
8+
9+
/**
10+
* @param array<int, array{state: string}> $array
11+
*/
12+
function test(array $array, int $id): void {
13+
$array[$id]['state'] = 'foo';
14+
assertType("non-empty-array<int, array{state: string}>", $array);
15+
}

0 commit comments

Comments
 (0)