@@ -152,7 +152,7 @@ private function executeReadyCallbacks(array $availableDependencyData, string $e
152
152
}
153
153
}
154
154
155
- private function initializeListeners (array $ fieldsToConsider = null ): void
155
+ private function initializeListeners (? array $ fieldsToConsider = null ): void
156
156
{
157
157
$ registeredFields = [];
158
158
foreach ($ this ->dependentFieldConfigs as $ dynamicField ) {
@@ -194,14 +194,14 @@ public function count(): int
194
194
/**
195
195
* @param string|FormBuilderInterface $child
196
196
*/
197
- public function add ($ child , string $ type = null , array $ options = []): static
197
+ public function add ($ child , ? string $ type = null , array $ options = []): static
198
198
{
199
199
$ this ->builder ->add ($ child , $ type , $ options );
200
200
201
201
return $ this ;
202
202
}
203
203
204
- public function create (string $ name , string $ type = null , array $ options = []): FormBuilderInterface
204
+ public function create (string $ name , ? string $ type = null , array $ options = []): FormBuilderInterface
205
205
{
206
206
return $ this ->builder ->create ($ name , $ type , $ options );
207
207
}
@@ -289,7 +289,7 @@ public function setAttributes(array $attributes): static
289
289
return $ this ;
290
290
}
291
291
292
- public function setDataMapper (DataMapperInterface $ dataMapper = null ): static
292
+ public function setDataMapper (? DataMapperInterface $ dataMapper = null ): static
293
293
{
294
294
$ this ->builder ->setDataMapper ($ dataMapper );
295
295
0 commit comments