Thread:Extension talk:Widgets/Parse error: syntax error, unexpected T FUNCTION on WidgetRenderer.php on line 142

I get this error after installing the extension. The portion of the code where the error occurs is listed bellow (note the comment indicating the line with the error) Any ideas on this?

Im using MediaWiki 1.19.15 and PHP 5.2.6