-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Allow EnumNode name to be null #25048
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
MatTheCat
commented
Nov 20, 2017
Q | A |
---|---|
Branch? | master |
Bug fix? | yes |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | #25046 |
License | MIT |
Thanks, could you add a test case please? |
Yep, guess 74b9fb1 will be enough? |
@@ -43,6 +43,11 @@ public function testConstructionWithOneDistinctValue() | |||
$this->assertSame('foo', $node->finalize('foo')); | |||
} | |||
|
|||
public function testConstructionWithNullName() | |||
{ | |||
new EnumNode(null, null, array('foo')); |
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.
please call ->finalize()
or so to make the test not risky
public function testConstructionWithNullName() | ||
{ | ||
$node = new EnumNode(null, null, array('foo')); | ||
$node->finalize('foo'); |
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.
please assert it (sorry I've been unclear) :)
Woops sorry 😓 |
Thank you @MatTheCat. |
This PR was squashed before being merged into the 4.0-dev branch (closes #25048). Discussion ---------- Allow EnumNode name to be null | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25046 | License | MIT Commits ------- 57d0636 Allow EnumNode name to be null