Typed properties and possible errors

Code
<?php

declare(strict_types=1);

class 
Foo
{
    public 
int $id;
    public ?
string $name;
}

$foo = new Foo();

// Wrong type
try {
    
$foo->id 'text for integer type';
} catch (
TypeError $e) {
    
dump($e->getMessage());
}

// Access unset property
try {
    echo 
$foo->name;
} catch (
Error $e) {
    
dump($e->getMessage());
}
Result
"Typed property Foo::$id must be int, string used"

"Typed property Foo::$name must not be accessed before initialization"
Used Versions
PHP 7.4, Zend 3.0, Symfony 4.3, Laravel 5.8, PHPUnit 8.0, Doctrine 2.10