Menu

Getter, Setter, Never?

Published on December 04, 2019 and filed under Software engineering
Written
by Zvonimir Spajic and will take

6 minutes

of your time.
In short
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.
Twitter logo

Want to see more articles like this in your inbox? You know what to do.

Written by

Zvonimir Spajic

Zvonimir is a passionate software developer from Croatia who worked for madewithlove from 2019 till 2020.

Related articles

Serverless functions with Vercel

Serverless functions with Vercel

Geoffrey Dhuyvetters

September 02, 2020

I'm starting a greenfield project and I'm terrified.

I'm starting a greenfield project and I'm terrified.

Jonas Drieghe

August 04, 2020

Towards better code reviews

Towards better code reviews

Jonas Drieghe

July 14, 2020