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

View File

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