PHP 7.0 brought typehints for scalar values. Since version 7.1 they are actually usable. Typed class properties, covariance and contravariance are hopefully coming. I will talk about what this will allow us to do and how to leverage these features for better and safer code. Some pitfalls of the present state of things will be identified and possible remedies suggested. This talk will concentrate on PHP, but since typehinting seems to be the trend in other dynamically typed languages as well, it will also keep the wider context in mind.
Martin Bohal is a web programmer with over 15 years of experience. He has delivered projects large and small, both alone and as a part of a team and in various capacities. He strongly believes in code being a means of expression and that delivering functional code is not enough. Lately, he mostly works in PHP and JavaScript with some occasional Python.