Fixed New member registration in 1.2.1

I have just been updated to 1.2.1
After that during new member registration I get
ErrorException: Fatal Error: syntax error, unexpected T_FUNCTION - library/XenForo/Mail.php:362
#0 [internal function]: XenForo_Application::handleFatalError('XenForo_Mail')
#1 {main}


Well-known member
Make sure you have uploaded all the files correctly. I don't have a test board at hand but syntax error bugs are very rare.
I have reuploaded previous version of Mail.php (from 1.2.0) and registration is OK now.
But this is strange still.
Does someone know which changes have happened in 1.2.1-version of Mail.php in comparison to previous one?
I worry about consequenses of my manipulation.