8000 [Workflow] Remove `GuardEvent::getContext()` method without replacement · symfony/symfony@8271c56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8271c56

Browse files
[Workflow] Remove GuardEvent::getContext() method without replacement
1 parent d1774f4 commit 8271c56

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/Symfony/Component/Workflow/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ CHANGELOG
66

77
* Require explicit argument when calling `Definition::setInitialPlaces()`
88
* `GuardEvent::getContext()` method has been removed. Method was not supposed to be called within guard event listeners as it always returned an empty array anyway.
9+
* Remove `GuardEvent::getContext()` method without replacement
910

1011
6.4
1112
---

src/Symfony/Component/Workflow/Event/GuardEvent.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ public function __construct(object $subject, Marking $marking, Transition $trans
3232
$this->transitionBlockerList = new TransitionBlockerList();
3333
}
3434

35-
public function getContext(): array
36-
{
37-
trigger_deprecation('symfony/workflow', '6.4', 'The %s::getContext() method is deprecated and will be removed in 7.0. You should no longer call this method as it always returns an empty array when invoked within a guard listener.', __CLASS__);
38-
39-
return parent::getContext();
40-
}
41-
4235
public function getTransition(): Transition
4336
{
4437
return parent::getTransition();

0 commit comments

Comments
 (0)
0