Skip to content

Commit

Permalink
#16023 - Declare Event:getSource() method with correct signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Aug 22, 2022
1 parent 0dc450a commit 9e95039
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phalcon/Events/Event.zep
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Event implements EventInterface
*
* @var object|null
*/
protected source { get };
protected source = null;

/**
* Is event propagation stopped?
Expand Down Expand Up @@ -100,6 +100,11 @@ class Event implements EventInterface
return this->stopped;
}

public function getSource() -> object | null
{
return this->source;
}

/**
* Sets event data.
*/
Expand Down

0 comments on commit 9e95039

Please sign in to comment.