summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2016-11-18 10:35:30 (GMT)
committerAlex Pott2016-11-18 10:35:30 (GMT)
commitd558fbefc7fe3edd9253837e50127b6b3cf7bc29 (patch)
tree12898fd65cef0cddca074a14a170d4c52a0b09f5
parent1380ab9d459ae7f0b2d0e3dca149349bdf30d79a (diff)
Issue #2828642 by eojthebrave: Wrong method signature in documentation for subscribing to an event
-rw-r--r--core/core.api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/core.api.php b/core/core.api.php
index 639e55d..d9cf734 100644
--- a/core/core.api.php
+++ b/core/core.api.php
@@ -2493,7 +2493,7 @@ function hook_validation_constraint_alter(array &$definitions) {
* this class is subscribed to, and which methods on the class should be
* called for each one. Example:
* @code
- * public function getSubscribedEvents() {
+ * public static function getSubscribedEvents() {
* // Subscribe to kernel terminate with priority 100.
* $events[KernelEvents::TERMINATE][] = array('onTerminate', 100);
* // Subscribe to kernel request with default priority of 0.