Skip to content

Commit

Permalink
The object access type of the Event :: run method has been changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ozanuykun committed Jun 16, 2018
1 parent fbe27b0 commit 0b6ec64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Internal/package-event-handler/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Event implements EventInterface
*
* @return bool
*/
public function run(String $eventName, Array $parameters = []) : Bool
public static function run(String $eventName, Array $parameters = []) : Bool
{
return Run::event($eventName, $parameters);
}
Expand Down
2 changes: 1 addition & 1 deletion Internal/package-event-handler/EventInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface EventInterface
*
* @return bool
*/
public function run(String $eventName, Array $parameters = []) : Bool;
public static function run(String $eventName, Array $parameters = []) : Bool;

/**
* Insert a listener.
Expand Down

0 comments on commit 0b6ec64

Please sign in to comment.