-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] fix test setup and skip test until bug is fixed in PHP #59895
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
Conversation
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. |
FYI: Should be fixed in the latest PHP master now 🤞 |
Thank you @TimWolla! I'll take care of updating our code accordingly |
…n `php-src` (alexandre-daubois) This PR was merged into the 7.3 branch. Discussion ---------- [Validator] Don't skip `WhenTest` case after fix merge in `php-src` | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Revert skip being introduced in #59895 after the fix of php/php-src#17851. Commits ------- 8f4bb30 [Validator] Don't skip `WhenTest` case after fix merge in `php-src`