TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
257 B

--TEST--
Property with nullable type
--FILE--
<?php
class Foo
{
public function __construct(public string|Stringable $value)
{
}
}
function main() {
$foo = new Foo('Continue');
var_dump($foo->value);
}
?>
--EXPECT--
string(8) "Continue"