Automatically convert your code to PHP 7.4 syntax using Rector

In PHP 7.4, two new features were introduced that I’d like to use in my packages and projects: short closures and typed properties. Even though an IDE can help with converting to the new syntax, I’d don’t want to manually hunt down all the places where the new syntax can be used. Lucky there’s a tool that can do this work automatically.