I am not fan of mixing types in a variable. so I'd go for 

public function __construct($baseUrl = '')

Since the url is a string. 
On the other hand the baseUrl gets used quite often by methods depending on a valid url.
So I'd propose to make 'http://localhost' the default value. Wdyt?