Escrevi o código da mesma maneira que o instrutor e recebi 2 erros fatais.
Cannot use positional argument after named argument
Unknown named parameter 'time'
<?php
use Alura\Pdo\Domain\Model\Student;
require_once 'vendor/autoload.php';
$databasePath = __DIR__ . '/banco.sqlite';
$pdo = new PDO(dsn:'sqlite:' . $databasePath);
$student = new Student(id:null, name:'Vinicius Dias', new \DateTimeImmutable(time:'1997-10-15'));
$sqlInsert = "INSERT INTO students (name, birth_date) VALUES ('{$student->name()}', '{$student->birthDate()->format(format: 'Y-m-d')}');";
echo $sqlInsert;