From 89a0e84404bc39036a13a2559d050a3fb91f1d17 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 11 Feb 2014 12:47:28 +0100 Subject: [PATCH] Fixed handlerPriority order --- src/BaseEvent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BaseEvent.php b/src/BaseEvent.php index 38b81c851..294ab14ba 100644 --- a/src/BaseEvent.php +++ b/src/BaseEvent.php @@ -106,6 +106,7 @@ abstract class BaseEvent{ static::$handlers[$identifier] = $handler; if(!isset(static::$handlerPriority[(int) $priority])){ static::$handlerPriority[(int) $priority] = array(); + krsort(static::$handlerPriority); } static::$handlerPriority[(int) $priority][$identifier] = $handler; return true;