Skip to content

Commit 668d970

Browse files
committed
resolve linting on lower PHP versions
1 parent 4c54a1a commit 668d970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Type/Php/TrimFunctionDynamicReturnTypeExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public function getTypeFromFunctionCall(
4242
$accessory[] = new AccessoryUppercaseStringType();
4343
}
4444
if (count($accessory) > 0) {
45-
return new IntersectionType([new StringType(), ...$accessory]);
45+
$accessory[] = new StringType();
46+
return new IntersectionType($accessory);
4647
}
4748

4849
return new StringType();

0 commit comments

Comments
 (0)