if I do serialize($obj), I get:
serialize($obj)
Serialization of \'Closure\' is not allowed
Is there any way these closures can be
To serialize properties of an object while ignoring closures :
$properties = array_map(function ($property) { try { return serialize($property); } catch (\Exception $e) { return null; } }, get_object_vars($this));