Skip to content

Commit ddc1297

Browse files
committed
Build fix
1 parent 3d3c723 commit ddc1297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/PHPStan/Reflection/ParametersAcceptorSelectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function dataSelectFromTypes(): \Generator
191191
new NativeParameterReflection(
192192
'token',
193193
true,
194-
new StringType(),
194+
PHP_VERSION_ID < 80000 ? new StringType() : new UnionType([new StringType(), new NullType()]),
195195
PassedByReference::createNo(),
196196
false,
197197
null

0 commit comments

Comments
 (0)