blob: 7bb8e7d4bbf76a744a270b51c1787020ee4c128f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
Test that the mixed return type can't be used together with any other type
--FILE--
<?php
function foo(): mixed|string|null
{
return null;
}
?>
--EXPECTF--
Fatal error: Type mixed can only be used as a standalone type in %s on line %d
|