Skip to content

Commit dd5607b

Browse files
bocharsky-bwweaverryan
authored andcommitted
Allow symfony/twig-bundle ^5.4 to better test lowest deps
1 parent 28ac99d commit dd5607b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"symfony/phpunit-bridge": "^5.4|^6.3|^7.0",
2020
"phpstan/phpstan": "^1.11",
2121
"zenstruck/browser": "^1.4",
22-
"symfony/twig-bundle": "^6.3|^7.0",
23-
"twig/twig": "^2.15|^3.0"
22+
"symfony/twig-bundle": "^5.4|^6.3|^7.0",
23+
"twig/twig": "^2.15|^3.0",
24+
"symfony/options-resolver": "^5.4|^6.3|^7.0"
2425
},
2526
"minimum-stability": "dev",
2627
"autoload": {

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)