Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

fix: resolve array_key_exists type error #160

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function alterSearchForm(): void
$formData = $this->getRequest()->getQuery();
$form->setData($formData);

if (array_key_exists('vehicleSearch', $formData)) {
if (array_key_exists('vehicleSearch', $formData->toArray())) {
$form->isValid();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function configureSearchFormForIndex(Form $form, Request $request): vo
$formData = $request->getQuery();
$form->setData($formData);

if (array_key_exists('vehicleSearch', $formData)) {
if (array_key_exists('vehicleSearch', $formData->toArray())) {
$form->isValid();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ protected function alterSearchForm(): void
$formData = $this->getRequest()->getQuery();
$form->setData($formData);

if (array_key_exists('vehicleSearch', $formData)) {
if (array_key_exists('vehicleSearch', $formData->toArray())) {
$form->isValid();
}

Expand Down
Loading