Thank you, BushMackel, for pointing me to the actual solution.
Line 1120 in “wp-twitter-widget.php” ends with a comma that shouldn’t be there:
'count' => $widgetOptions['items'],
Just remove that comma – the line should be like this:
'count' => $widgetOptions['items']
That’s all you need to change. You can see the widget in action here:
https://www.netometer.com/blog