-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Fix ParameterBagTest message with PHP 8.2 #48902
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
c00a765
to
b003136
Compare
@@ -242,7 +242,11 @@ public function testGetEnumThrowsExceptionWithNotBackingValue() | |||
$bag = new ParameterBag(['invalid-value' => 2]); | |||
|
|||
$this->expectException(\UnexpectedValueException::class); | |||
$this->expectExceptionMessage('Parameter "invalid-value" cannot be converted to enum: 2 is not a valid backing value for enum "Symfony\Component\HttpFoundation\Tests\Foo".'); | |||
if (\PHP_VERSION_ID >= 80200) { |
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.
This file change must target a lower branch, 6.0 imho
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.
As @MatTheCat mentioned, the bug was added by #48820 in 6.3
And yes, he has found another issue with enums.
b536fdc
to
0802dff
Compare
Thank you @upyx. |
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- Fix ParameterBagTest message with PHP 8.2 | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | nope | License | MIT | Doc PR | nope Checking every time that tests failed just because of that minor thing makes me angry. Commits ------- 809f02c Fix ParameterBagTest message with PHP 8.2
0802dff
to
809f02c
Compare
Checking every time that tests failed just because of that minor thing makes me angry.