Skip to content

Commit 525d088

Browse files
Fix bad rebase
1 parent 6c60332 commit 525d088

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Validator/Constraints/UserPasswordValidatorTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ public function provideConstraints(): iterable
9494
{
9595
yield 'Doctrine style' => [new UserPassword(['message' => 'myMessage'])];
9696

97-
yield 'named arguments' => [new UserPassword(message: "myMessage")];
97+
if (\PHP_VERSION_ID >= 80000) {
98+
yield 'named arguments' => [eval('return new \Symfony\Component\Security\Core\Validator\Constraints\UserPassword(message: "myMessage");')];
99+
}
98100
}
99101

100102
/**

0 commit comments

Comments
 (0)