1、对象属性现在支持类型申明
<?php class User { public int $id; public string $name; } ?>
上列例子中将会强制转化$id为integer类型,$name为字符串类型
$name