Skip to content

Commit

Permalink
#16023 - Adjust condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Aug 22, 2022
1 parent 755534b commit 0dc450a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phalcon/Events/Event.zep
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand Down

0 comments on commit 0dc450a

Please sign in to comment.