Skip to content

Commit

Permalink
Allow symfony/twig-bundle ^5.4 to better test lowest deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw authored and weaverryan committed Oct 9, 2023
1 parent 28ac99d commit dd5607b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
"symfony/phpunit-bridge": "^5.4|^6.3|^7.0",
"phpstan/phpstan": "^1.11",
"zenstruck/browser": "^1.4",
"symfony/twig-bundle": "^6.3|^7.0",
"twig/twig": "^2.15|^3.0"
"symfony/twig-bundle": "^5.4|^6.3|^7.0",
"twig/twig": "^2.15|^3.0",
"symfony/options-resolver": "^5.4|^6.3|^7.0"
},
"minimum-stability": "dev",
"autoload": {
Expand Down
12 changes: 9 additions & 3 deletions src/DynamicFormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,10 @@ public function count(): int
return $this->builder->count();
}

public function add(string|FormBuilderInterface $child, string $type = null, array $options = []): static
/**
* @param string|FormBuilderInterface $child
*/
public function add($child, string $type = null, array $options = []): static
{
$this->builder->add($child, $type, $options);

Expand Down Expand Up @@ -286,7 +289,7 @@ public function setAttributes(array $attributes): static
return $this;
}

public function setDataMapper(?DataMapperInterface $dataMapper): static
public function setDataMapper(DataMapperInterface $dataMapper = null): static
{
$this->builder->setDataMapper($dataMapper);

Expand Down Expand Up @@ -335,7 +338,10 @@ public function setMethod(string $method): static
return $this;
}

public function setPropertyPath(null|string|PropertyPathInterface $propertyPath): static
/**
* @param string|PropertyPathInterface|null $propertyPath
*/
public function setPropertyPath($propertyPath): static
{
$this->builder->setPropertyPath($propertyPath);

Expand Down

0 comments on commit dd5607b

Please sign in to comment.