Skip to content

Commit 71e33f8

Browse files
phpstan-botclaude
andcommitted
Add regression test for #11870
Closes phpstan/phpstan#11870 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 86a07a2 commit 71e33f8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Bug11870;
4+
5+
use function PHPStan\Testing\assertType;
6+
7+
function () {
8+
assert(isset($v) && is_array($v) && isset($v['LANGUAGE']));
9+
10+
$language = $v['LANGUAGE'] !== 1 ? 'en' : '';
11+
if ($language !== '') {
12+
assertType('true', $v['LANGUAGE'] !== 1);
13+
}
14+
};

0 commit comments

Comments
 (0)