Nikita, Bob I'd love to thank you and everyone involved on this one. Types properties on PHP is something that we tried before, but due to a number of issues, we didn't make it. Unfortunately, I don't have the knowledge to help in the implementation, but I'd like to drop some comments about the syntax.
As described in https://wiki.php.net/rfc/typed_properties_v2#syntax, I think we should only allow class Example { public int $num; public string $name; } Allow the `:` variant (`public $num: int;`) would bring a lot of doubts for new users, and the `{visibility} {type} {name}` is prett consistence in other languages. Again, thanks for this amazing work, and let's make for the next PHP version :) -- Gabriel Caruso