Skip to content

Commit 9e104d9

Browse files
f3l1xjiripudil
andauthored
Composer: allow symfony 6.x (#9)
* Composer: allow symfony 6.x * fixup * add ContainerConstraintValidatorFactory::getInstance() return type Co-authored-by: Jiří Pudil <[email protected]>
1 parent b6ce363 commit 9e104d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"require": {
2020
"php": ">=7.4",
2121
"nette/di": "^3.0.1",
22-
"symfony/cache": "^5.0",
23-
"symfony/config": "^5.0",
24-
"symfony/validator": "^5.2"
22+
"symfony/cache": "^5.0 || ^6.0",
23+
"symfony/config": "^5.0 || ^6.0",
24+
"symfony/validator": "^5.2 || ^6.0"
2525
},
2626
"require-dev": {
2727
"doctrine/annotations": "^1.8",

src/ContainerConstraintValidatorFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(Container $container)
3232
* @throws ValidatorException when the validator class does not exist
3333
* @throws UnexpectedTypeException when the validator is not an instance of ConstraintValidatorInterface
3434
*/
35-
public function getInstance(Constraint $constraint)
35+
public function getInstance(Constraint $constraint): ConstraintValidatorInterface
3636
{
3737
/** @var class-string<ConstraintValidatorInterface> $name */
3838
$name = $constraint->validatedBy();

0 commit comments

Comments
 (0)