Skip to content

[FrameworkBundle] [Workflow]: fixed configuration so service & arguments won't throw an exception #20825

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

Closed
wants to merge 3 commits into from

Conversation

laurensvandeput
Copy link

@laurensvandeput laurensvandeput commented Dec 8, 2016

Q A
Branch? 3.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #20815
License MIT
Doc PR

@@ -268,7 +268,7 @@ private function addWorkflowSection(ArrayNodeDefinition $rootNode)
->thenInvalid('"type" and "service" cannot be used together.')
->end()
->validate()
->ifTrue(function ($v) { return isset($v['arguments']) && isset($v['service']); })
->ifTrue(function ($v) { return (isset($v['arguments']) && !empty($v['arguments'])) && isset($v['service']); })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isset is not needed then: return !empty($v['arguments']) &&...

@fduch
Copy link
Contributor

fduch commented Dec 8, 2016

This PR duplicates already submitted #20760

@stof
Copy link
Member

stof commented Dec 8, 2016

Can you add a test covering this to ensure we don't get a regression ?

@HeahDude
Copy link
Contributor

HeahDude commented Dec 8, 2016

Should be closed as duplicate.

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.

6 participants