We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9463c2 commit 6609555Copy full SHA for 6609555
tests/PHPStan/Type/TypeCombinatorTest.php
@@ -971,6 +971,20 @@ public function dataUnion(): iterable
971
IntersectionType::class,
972
'non-empty-array&hasOffsetValue(\'foo\', mixed)',
973
],
974
+ [
975
976
+ new IntersectionType([
977
+ new ArrayType(new MixedType(), new MixedType()),
978
+ new HasOffsetType(new ConstantStringType('foo')),
979
+ ]),
980
981
982
+ new HasOffsetValueType(new ConstantIntegerType(2), new ConstantStringType('foo')),
983
984
+ ],
985
+ IntersectionType::class,
986
+ 'non-empty-array',
987
988
[
989
990
new BenevolentUnionType([new IntegerType(), new StringType()]),
0 commit comments