3 Changes:

1. Corrected index.php: changed:
$vehicleArray[] = ${str_replace('-', '', $v[1])};
to:
$vehicleArray[] = new Vehicle($v);

2. removed: unset($v);

3. Created new object for Garage, moved $garage property there as $garageSpace;