Zend certified PHP/Magento developer

So we have typed properties with PHP 7.4 but when I have class User { public $name } and try to set an integer to the name property $user->name = 1; this just casts the variable to string. I’d expect an error even without having strict_types = 1, what do you guys think?