-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Validator] fix test setup and skip test until bug is fixed in PHP #59895
Conversation
xabbuh
commented
Mar 2, 2025
Q | A |
---|---|
Branch? | 7.3 |
Bug fix? | no |
New feature? | no |
Deprecations? | no |
Issues | |
License | MIT |
use Symfony\Component\Validator\Constraints\NotBlank; | ||
use Symfony\Component\Validator\Constraints\NotNull; | ||
use Symfony\Component\Validator\Constraints\When; | ||
|
||
#[When(expression: static function () { | ||
return true; | ||
}, constraints: new NotNull() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Symfony\Component\Validator\Exception\ConstraintDefinitionException: The constraint "Symfony\Component\Validator\Constraints\NotNull" cannot be put on classes.
@@ -118,6 +118,8 @@ public function testAttributes() | |||
*/ | |||
public function testAttributesWithClosure() | |||
{ | |||
$this->markTestSkipped('Requires https://github.com/php/php-src/issues/17851 to be fixed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexandre-daubois and me are keeping an eye on php/php-src#17851 to revert this change once the bug in PHP has been fixed
Thank you @xabbuh. |