Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 4fbd54a

Browse files
committed
feat: proxy to isPropagationStopped
Modifies Event::propagationIsStopped such that it now proxies to the isPropagationStopped method, and documents in the deprecation notice that this happens.
1 parent f1ad8bc commit 4fbd54a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Event.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,14 @@ public function stopPropagation($flag = true)
191191
* Is propagation stopped?
192192
*
193193
* @deprecated Use isPropagationStopped instead, to make your application
194-
* forwards-compatible with PSR-14 and zend-eventmanager v4.
194+
* forwards-compatible with PSR-14 and zend-eventmanager v4. If you
195+
* plan to override this method, please do so via the `isPropagationStopped`
196+
* method, as this method proxies to that one starting in version 3.3.0.
195197
* @return bool
196198
*/
197199
public function propagationIsStopped()
198200
{
199-
return $this->stopPropagation;
201+
return $this->isPropagationStopped();
200202
}
201203

202204
/**

0 commit comments

Comments
 (0)