Skip to content

hotfix: missing the call to InstanceOfSupportStrategy #9233

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

Merged
merged 2 commits into from
Feb 9, 2018

Conversation

Simperfit
Copy link
Contributor

Updating the exemple I missed the call to instanceOfSupportStrategy which is now needed.

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

This is correct because the signature of the function is:

public function addWorkflow(WorkflowInterface $workflow, WorkflowSupportStrategyInterface $supportStrategy)
{
    $this->workflows[] = array($workflow, $supportStrategy);
}

Thanks @Simperfit!

@javiereguiluz javiereguiluz added this to the 4.1 milestone Feb 9, 2018
@javiereguiluz
Copy link
Member

By the way, I don't know anything about the Workflow component, but InstanceOfSupportStrategy doesn't look right for a class name (SupportStrategy feels better) and using InstanceOf... as a prefix is really uncommon in Symfony codebase.

@javiereguiluz javiereguiluz merged commit fbcf572 into symfony:master Feb 9, 2018
javiereguiluz added a commit that referenced this pull request Feb 9, 2018
…mperfit, javiereguiluz)

This PR was merged into the master branch.

Discussion
----------

hotfix: missing the call to InstanceOfSupportStrategy

Updating the exemple I missed the call to instanceOfSupportStrategy which is now needed.

Commits
-------

fbcf572 Added the use import
379a939 hotfix: missing the call to InstanceOfSupportStrategy
@Simperfit Simperfit deleted the patch-4 branch February 12, 2018 08:25
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.

3 participants