===description===
basic
===file===
<?php
class Foo {
    public string $name;
}

$f = new Foo();
$f->name = 42;
===expect===
InvalidPropertyAssignment@7:0: Property $name expects 'string', cannot assign '42'
===ignore===
TODO
