It looks like there is something messed up with reading API of this class (stubs?). In stubs it looks OK.
/** @var \Ds\Vector<int> */
$vector = new \Ds\Vector([1,2,3]);
Class Ds\Vector does not have a constructor and must be instantiated without any parameters.