neat-php / object

Neat Object components
MIT License
4 stars 1 forks source link

Support for php7.4 typed properties #28

Closed baukevdw closed 1 month ago

baukevdw commented 4 years ago

Currently we determine the type of a property by parsing the doc-block. As of php7.4 this is not needed anymore because typed properties have been added which can be read out by reflection.

Besides reading out the type data we need to change the way we read out the property value. A property might not be set and accessing a typed property before initialization will trigger an error. We should do an isset check before accessing.