Skip to content
/ form Public

Commit dabf7e9

Browse files
committedJan 23, 2024
Merge branch '6.3' into 6.4
* 6.3: minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2 parents bf3502c + 4254548 commit dabf7e9

File tree

78 files changed

+103
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+103
-103
lines changed
 

‎Button.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function offsetUnset(mixed $offset): void
8181
throw new BadMethodCallException('Buttons cannot have children.');
8282
}
8383

84-
public function setParent(FormInterface $parent = null): static
84+
public function setParent(?FormInterface $parent = null): static
8585
{
8686
if (1 > \func_num_args()) {
8787
trigger_deprecation('symfony/form', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);
@@ -107,7 +107,7 @@ public function getParent(): ?FormInterface
107107
*
108108
* @throws BadMethodCallException
109109
*/
110-
public function add(string|FormInterface $child, string $type = null, array $options = []): static
110+
public function add(string|FormInterface $child, ?string $type = null, array $options = []): static
111111
{
112112
throw new BadMethodCallException('Buttons cannot have children.');
113113
}
@@ -338,7 +338,7 @@ public function isRoot(): bool
338338
return null === $this->parent;
339339
}
340340

341-
public function createView(FormView $parent = null): FormView
341+
public function createView(?FormView $parent = null): FormView
342342
{
343343
if (null === $parent && $this->parent) {
344344
$parent = $this->parent->createView();

‎ButtonBuilder.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(?string $name, array $options = [])
5656
*
5757
* @throws BadMethodCallException
5858
*/
59-
public function add(string|FormBuilderInterface $child, string $type = null, array $options = []): static
59+
public function add(string|FormBuilderInterface $child, ?string $type = null, array $options = []): static
6060
{
6161
throw new BadMethodCallException('Buttons cannot have children.');
6262
}
@@ -68,7 +68,7 @@ public function add(string|FormBuilderInterface $child, string $type = null, arr
6868
*
6969
* @throws BadMethodCallException
7070
*/
71-
public function create(string $name, string $type = null, array $options = []): FormBuilderInterface
71+
public function create(string $name, ?string $type = null, array $options = []): FormBuilderInterface
7272
{
7373
throw new BadMethodCallException('Buttons cannot have children.');
7474
}
@@ -220,7 +220,7 @@ public function setAttributes(array $attributes): static
220220
*
221221
* @throws BadMethodCallException
222222
*/
223-
public function setDataMapper(DataMapperInterface $dataMapper = null): static
223+
public function setDataMapper(?DataMapperInterface $dataMapper = null): static
224224
{
225225
if (1 > \func_num_args()) {
226226
trigger_deprecation('symfony/form', '6.2', 'Calling "%s()" without any arguments is deprecated, pass null explicitly instead.', __METHOD__);

0 commit comments

Comments
 (0)
Please sign in to comment.