我可以使用类型提示允许两种不同的类型吗?例如,参数1可以是2个类
function log (User|File $requester) { }
php type-hinting php-8
php ×1
php-8 ×1
type-hinting ×1