Skip to content
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

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Mar 2, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? no
Deprecations? no
Issues
License MIT

@carsonbot carsonbot added this to the 7.3 milestone Mar 2, 2025
@carsonbot carsonbot changed the title [Validator] fix test setup and skip test until bug is fixed in PHP [Validator] fix test setup and skip test until bug is fixed in PHP Mar 2, 2025
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()
Copy link
Member Author

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');
Copy link
Member Author

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

@fabpot
Copy link
Member

fabpot commented Mar 3, 2025

Thank you @xabbuh.

@fabpot fabpot merged commit 0d92f86 into symfony:7.3 Mar 3, 2025
11 checks passed
@xabbuh xabbuh deleted the pr-59800 branch March 3, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants