minor #26615 [Workflow] removed bc break (lyrixx)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[Workflow] removed bc break

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? |
| Tests pass?   | yes
| Fixed tickets | #26076
| License       | MIT
| Doc PR        |

Commits
-------

685695d7b1 [Workflow] removed bc break
This commit is contained in:
Fabien Potencier 2018-03-21 11:15:10 +01:00
commit a6cd5b93ce
1 changed files with 2 additions and 2 deletions

View File

@ -34,12 +34,12 @@ class GuardEvent extends Event
$this->transitionBlockerList = new TransitionBlockerList();
}
public function isBlocked(): bool
public function isBlocked()
{
return !$this->transitionBlockerList->isEmpty();
}
public function setBlocked(bool $blocked): void
public function setBlocked($blocked)
{
if (!$blocked) {
$this->transitionBlockerList->reset();