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

Commit

Permalink
fix: resolve array_key_exists type error (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored May 28, 2024
1 parent 1064839 commit 040db4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 040db4c

Please sign in to comment.