/** * Serialize data and write it to a file * * @param mixed * @param string * @return void * @throws IOException * @deprecated Use {@link IO::serialize()} instead */ public static function serializeToFile($data, $file) { IO::serialize($data, $file); }