Skip to content

fix: re-enable vehicle size declaration for PSV applications#171

Merged
sr4850 merged 1 commit into
mainfrom
fix/re-enable-vehicle-size-declaration
May 18, 2026
Merged

fix: re-enable vehicle size declaration for PSV applications#171
sr4850 merged 1 commit into
mainfrom
fix/re-enable-vehicle-size-declaration

Conversation

@sr4850

@sr4850 sr4850 commented May 18, 2026

Copy link
Copy Markdown
Collaborator

The VehiclesSizeReviewService in vol-app expects psvWhichVehicleSizes to be set when generating a grant snapshot for PSV applications. Without this, granting a PSV licence fails with 'Trying to access array offset on null' in VehiclesSizeReviewService.php.

Updated the endpoint from the old vehicle-declaration/submit (POST) to the current vehicle-size (PUT) endpoint, sending only the required fields (id, psvVehicleSize, version).

Description

Related issue: JIRA_TICKET_NUMBER

Before submitting (or marking as "ready for review")

  • Does the pull request title follow the conventional commit specification?
  • Have you performed a self-review of the code
  • Have you have added tests that prove the fix or feature is effective and working
  • Did you make sure to update any documentation relating to this change?

The VehiclesSizeReviewService in vol-app expects psvWhichVehicleSizes
to be set when generating a grant snapshot for PSV applications. Without
this, granting a PSV licence fails with 'Trying to access array offset
on null' in VehiclesSizeReviewService.php.

Updated the endpoint from the old vehicle-declaration/submit (POST) to
the current vehicle-size (PUT) endpoint, sending only the required
fields (id, psvVehicleSize, version).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sr4850 sr4850 merged commit a9ce2cb into main May 18, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant