Update PreSerializeListener.php