diff --git a/phalcon/Events/Event.zep b/phalcon/Events/Event.zep index 27142b0df9c..1d0d5b6060c 100644 --- a/phalcon/Events/Event.zep +++ b/phalcon/Events/Event.zep @@ -67,7 +67,7 @@ class Event implements EventInterface */ public function __construct(string! type, var source = null, var data = null, bool cancelable = true) { - if unlikely null !== source && typeof source != "object" { + if unlikely null !== source && typeof source !== "object" { throw new Exception( "The source of " . type . " event must be an object, got " . (typeof source) );