This is an automated archive.
The original was posted on /r/php by /u/ntbatyr23 on 2023-08-08 11:35:51+00:00.
Hi guys! Surely I have to write this question to github issues, but i hope you met this case and can share solution here.
Here is an example of class with nullable property. Ofcourse in real life inititialization would be more different (db entity or DTO). But the goal is to check wheter the property is null in the setter method. It could be an abstract class method, used by extended classes.
You must log in or register to comment.