Back-end, Software engineering
Typed property must not be accessed before initialization
PHP7.4 introduced this cool new feature called "typed properties" which adds the existing PHP type system to class properties.
A lot of people see this "Typed property must not be accessed before initialization" error popping up though. Let's check some common pitfalls with this new feature and how to tackle them.