Thread:Extension talk:Phpbb Single Sign-On/Parse error: syntax error, unexpected ' ', expecting T FUNCTION session.php on line 1519

I've been trying to troubleshoot this for a bit but haven't been able to figure out how to fix this on. I fallowed the guide and got it all working except this one error which I'm assuming is because I'm using a later version of MediaWiki.

Parse error: syntax error, unexpected '{', expecting T_FUNCTION .../session.php on line 1519

Any help would be greatly appreciated.