Skip to content

Commit dae0100

Browse files
committed
bug #7 Fix method signatures for legacy compatibility (Frans Weerts)
This PR was squashed before being merged into the main branch. Discussion ---------- Fix method signatures for legacy compatibility Fixes #5 Commits ------- 090e89d Fix method signatures for legacy compatibility
2 parents 28ac99d + 090e89d commit dae0100

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/DynamicFormBuilder.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ public function count(): int
191191
return $this->builder->count();
192192
}
193193

194-
public function add(string|FormBuilderInterface $child, string $type = null, array $options = []): static
194+
/**
195+
* @param string|FormBuilderInterface $child
196+
*/
197+
public function add($child, string $type = null, array $options = []): static
195198
{
196199
$this->builder->add($child, $type, $options);
197200

@@ -286,7 +289,7 @@ public function setAttributes(array $attributes): static
286289
return $this;
287290
}
288291

289-
public function setDataMapper(?DataMapperInterface $dataMapper): static
292+
public function setDataMapper(DataMapperInterface $dataMapper = null): static
290293
{
291294
$this->builder->setDataMapper($dataMapper);
292295

@@ -335,7 +338,10 @@ public function setMethod(string $method): static
335338
return $this;
336339
}
337340

338-
public function setPropertyPath(null|string|PropertyPathInterface $propertyPath): static
341+
/**
342+
* @param string|PropertyPathInterface|null $propertyPath
343+
*/
344+
public function setPropertyPath($propertyPath): static
339345
{
340346
$this->builder->setPropertyPath($propertyPath);
341347

0 commit comments

Comments
 (0)