chore: fix phpstan errors
This commit is contained in:
@@ -11,7 +11,6 @@ use App\BusProNet\Model\Notification;
|
||||
use App\BusProNet\Model\ServiceAvailabilityResponse;
|
||||
use App\BusProNet\Model\Travel;
|
||||
use App\BusProNet\XmlLoader\TravelLoader;
|
||||
use App\Exception\HotelNotFoundException;
|
||||
use App\Exception\HotelNotInTravelException;
|
||||
use App\Exception\TravelNotFoundException;
|
||||
use Psr\Cache\InvalidArgumentException;
|
||||
@@ -86,7 +85,6 @@ class TravelDataProvider
|
||||
* @return Travel|null The travel data or null on unexpected failure
|
||||
*
|
||||
* @throws TravelNotFoundException When the travel date is not found
|
||||
* @throws HotelNotFoundException When the requested hotel is not found
|
||||
* @throws HotelNotInTravelException When the hotel does not belong to this travel
|
||||
*/
|
||||
public function getTravelDataFromXml(int $dateId, ?int $hotelId = null): ?Travel
|
||||
@@ -100,7 +98,7 @@ class TravelDataProvider
|
||||
'error' => $e->getMessage(),
|
||||
]);
|
||||
throw $e;
|
||||
} catch (HotelNotFoundException|HotelNotInTravelException $e) {
|
||||
} catch (HotelNotInTravelException $e) {
|
||||
$this->logger->debug('Hotel not found in XML', [
|
||||
'dateId' => $dateId,
|
||||
'hotelId' => $hotelId,
|
||||
|
||||
Reference in New Issue
Block a user