Skip to content

Commit e0e204d

Browse files
committed
Add test for void + class
1 parent 686e61f commit e0e204d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--TEST--
2+
Combining void with class type
3+
--FILE--
4+
<?php
5+
6+
function test(): T|void {}
7+
8+
?>
9+
--EXPECTF--
10+
Fatal error: Void can only be used as a standalone type in %s on line %d

0 commit comments

Comments
 (0)