Skip to content

Commit ef9fa11

Browse files
Add asserts
1 parent 33c62c3 commit ef9fa11

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug12447;
4+
5+
use function PHPStan\Testing\assertType;
6+
7+
assertType('mixed', $data);
8+
$data[] = 1;
9+
assertType('mixed', $data);
10+
11+
function (): void {
12+
assertType('*ERROR*', $data);
13+
$data[] = 1;
14+
assertType('array{1}', $data);
15+
};

0 commit comments

Comments
 (0)