<?php
final class PromotedSample {
    public function __construct(
        private ?string $device,
        private ?string $tcp,
        private int $baud,
        private float $timeout,
    ) {
        echo "ctor", PHP_EOL;
    }
}

$c = new PromotedSample('/dev/tty', null, 115200, 5.0);
echo "done", PHP_EOL;
