Actually, by default it is null :
public function __construct($baseDir, $namespace = null) {
but it must be a string because of trim function :
$this->namespace = trim($namespace, '\\');
So constructor must be defined by :
public function __construct($baseDir, $namespace = '') {
Actually, by default it is null :
but it must be a string because of trim function :
So constructor must be defined by :