PHP 8 Продвижение свойства конструктора
class CustomerDTO
{
public function __construct(
public string $name,
public string $email,
public DateTimeImmutable $birth_date,
) {}
}
Cheerful Copperhead