diff --git a/code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php b/code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php index 7407e5ad7e..b7a28e5716 100644 --- a/code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php +++ b/code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php @@ -40,9 +40,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int $formValue = $content->getFieldValue('form', 'eng-GB')->getFormValue(); $data = [ - ['identifier' => 'single_line', 'name' => 'Line', 'value' => 'The name'], - ['identifier' => 'number', 'name' => 'Number', 'value' => 123], - ['identifier' => 'checkbox', 'name' => 'Checkbox', 'value' => 0], + ['id' => 7, 'identifier' => 'single_line', 'name' => 'Line', 'value' => 'The name'], + ['id' => 8, 'identifier' => 'number', 'name' => 'Number', 'value' => 123], + ['id' => 9, 'identifier' => 'checkbox', 'name' => 'Checkbox', 'value' => 0], ]; $this->formSubmissionService->create( diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index eddd8fbb4e..6c7781a0be 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -70,11 +70,6 @@ parameters: count: 1 path: code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php - - - message: "#^Parameter \\#4 \\$data of method Ibexa\\\\Contracts\\\\FormBuilder\\\\FormSubmission\\\\FormSubmissionServiceInterface\\:\\:create\\(\\) expects array\\, array\\{array\\{identifier\\: 'single_line', name\\: 'Line', value\\: 'The name'\\}, array\\{identifier\\: 'number', name\\: 'Number', value\\: 123\\}, array\\{identifier\\: 'checkbox', name\\: 'Checkbox', value\\: 0\\}\\} given\\.$#" - count: 1 - path: code_samples/api/public_php_api/src/Command/FormSubmissionCommand.php - - message: "#^Parameter \\#1 \\$messages of method Symfony\\\\Component\\\\Console\\\\Output\\\\OutputInterface\\:\\:writeln\\(\\) expects iterable\\\\|string, string\\|null given\\.$#" count: 2