FR 4584 then LA 5778 at Barcelona
Porto → Barcelona → Valletta
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
11:25LA 5778 to Valletta leaves the gate
16 h 50 apart on the timetable, overnight
LA 5778 leaves 16 h 50 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.