Skip to content

Commit af9d4f9

Browse files
committed
Fix FormSubmissionServiceInterface::create usage (#2511)
* FormSubmissionCommand.php: both identifier & id are needed * phpstan-baseline.neon: rm FormSubmissionCommandInterface::create ignore (cherry picked from commit 0b4f8c2)
1 parent ecc5a53 commit af9d4f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
4040

4141
$formValue = $content->getFieldValue('form', 'eng-GB')->getFormValue();
4242
$data = [
43-
['identifier' => 'single_line', 'name' => 'Line', 'value' => 'The name'],
44-
['identifier' => 'number', 'name' => 'Number', 'value' => 123],
45-
['identifier' => 'checkbox', 'name' => 'Checkbox', 'value' => 0],
43+
['id' => 7, 'identifier' => 'single_line', 'name' => 'Line', 'value' => 'The name'],
44+
['id' => 8, 'identifier' => 'number', 'name' => 'Number', 'value' => 123],
45+
['id' => 9, 'identifier' => 'checkbox', 'name' => 'Checkbox', 'value' => 0],
4646
];
4747

4848
$this->formSubmissionService->create(

0 commit comments

Comments
 (0)