I was just reading this on an online max-DPR build. There were some who thought using the Metamagic option Twinned Spell on the warlock's Eldritch Blast cantrip was illegal, and some who thought the opposite.
The Twinned Spell option for the sorcerer's Metamagic feature reads (PHB, page 102; emphasis mine)
When you cast a spell that targets only one creature and doesn't have a range of self, you can spend a number of sorcery points equal to the spell's level to target a second creature in range with the same spell (1 sorcery point if the spell is a cantrip).
Can Twinned Spell be used with Eldritch Blast?
Best Answer
Only when the caster is below 5th level
The errata for the PHB has clarified the restriction further from the original printing:
By default, eldritch blast does not have a range of self and is capable of targeting only one creature. It is thus eligible to be twinned.
However, the spell becomes capable of targeting more creatures once the caster reaches level 5:
Thus, once the caster reaches 5th level and above, they can no longer twin eldritch blast.
Note that eldritch blast (and all other similar cantrips) scale with character level not class level as confirmed (unofficially) by Jeremy Crawford on Twitter. (See Do Cantrips use your character level or class level? for more discussion about that)