Constructor promotion
Read the code
<?php class User { public function __construct(public string $name) {} } echo (new User("Ada"))->name;