Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Workflow] Remove unnecessary method calls#21784

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
izzyp wants to merge4 commits intosymfony:masterfromizzyp:patch-1

Conversation

@izzyp
Copy link
Contributor

QA
Branch?3.2
Bug fix?yes
New feature?no
LicenseMIT

getEnabledTransitions() method only requires 1 parameter "$subject".

Removed places where a second parameter "$this->getMarking($subject)" is being passed to getEnabledTransitions().

getEnabledTransitions() method only requires 1 parameter "$subject". Removed instances where a second $this->getMarking($subject) is being passed to getEnabledTransitions().
@izzypizzyp changed the titlePatch 1[Workflow] Remove unnecessary method callsFeb 27, 2017
@hhamon
Copy link
Contributor

Looks like you opened your PR against the wrong branch or forgot to rebase it.

@nicolas-grekasnicolas-grekas changed the base branch from3.2 tomasterFebruary 27, 2017 17:18
@nicolas-grekasnicolas-grekas added this to the3.2 milestoneFeb 27, 2017
MarkingStore->setMarking() is being called on every call to getMarking() in the Workflow class. This is only required if a new Marking is initialised and set as per line 63:`$marking->mark($this->definition->getInitialPlace());`If the Marking is not new, the subject either already has a marking and we don't need to call setMarking(), or it is new && theres no `initial place`. In that case an Exception is thrown on line 61.
@fabpot
Copy link
Member

ping@lyrixx

Comply with Coding Standard.
Copy link
Member

@lyrixxlyrixx left a comment

Choose a reason for hiding this comment

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

👍 expect a little comment.

}
$marking->mark($this->definition->getInitialPlace());

// Because the marking could have been initialized, we update the subject
Copy link
Member

Choose a reason for hiding this comment

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

I would remove this comment because now, it's clear the marking has been updated.

Copy link
ContributorAuthor

@izzypizzypFeb 27, 2017
edited
Loading

Choose a reason for hiding this comment

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

comment updated in7edad79.

@lyrixx
Copy link
Member

👍

@izzyp
Copy link
ContributorAuthor

@lyrixx

Q: how often do you release patches?

Is there a specific timeline for v3.2.5?

(new to symfony dev cycle, couldn't find this detailed anywhere..)

@stof
Copy link
Member

@izzyp we do patch releases once a month (except when a security issue requires us to release an extra one faster)

@nicolas-grekas
Copy link
Member

Thank you@izzyp.

nicolas-grekas added a commit that referenced this pull requestFeb 28, 2017
This PR was submitted for the master branch but it was merged into the 3.2 branch instead (closes#21784).Discussion----------[Workflow] Remove unnecessary method calls| Q             | A| ------------- | ---| Branch?       | 3.2| Bug fix?      | yes| New feature?  | no| License       | MITgetEnabledTransitions() method only requires 1 parameter "$subject".Removed places where a second parameter "$this->getMarking($subject)" is being passed to getEnabledTransitions().<!--- Bug fixes must be submitted against the lowest branch where they apply  (lowest branches are regularly merged to upper ones so they get the fixes too).- Features and deprecations must be submitted against the master branch.- Please fill in this template according to the PR you're about to submit.- Replace this comment by a description of what your PR is solving.-->Commits-------12d9129 [Workflow] Remove unnecessary method calls
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lyrixxlyrixxlyrixx approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

7 participants

@izzyp@hhamon@fabpot@lyrixx@stof@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp