Closed argiepiano closed 1 year ago
Trying to get the value of an empty date field through a metadata wrapper throws Warning: Trying to access array offset on value of type null in entity_plus_metadata_date_struct_getter()
$w = emw('node',2); dpm($w->field_YOUR_FIELD->value());
The problem only happens in PHP 8.1 and higher. This was fixed in D7 Entity API.
This was actually fixed in #155! Time to do new release.
Trying to get the value of an empty date field through a metadata wrapper throws Warning: Trying to access array offset on value of type null in entity_plus_metadata_date_struct_getter()
How to reproduce
The problem only happens in PHP 8.1 and higher. This was fixed in D7 Entity API.