From 0b6ec64ca82e8fe611df2233c6af18b310ef3e0c Mon Sep 17 00:00:00 2001 From: Ozan Uykun Date: Sun, 17 Jun 2018 00:49:21 +0300 Subject: [PATCH] The object access type of the Event :: run method has been changed. --- Internal/package-event-handler/Event.php | 2 +- Internal/package-event-handler/EventInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Internal/package-event-handler/Event.php b/Internal/package-event-handler/Event.php index da5eea09..831443dc 100755 --- a/Internal/package-event-handler/Event.php +++ b/Internal/package-event-handler/Event.php @@ -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); } diff --git a/Internal/package-event-handler/EventInterface.php b/Internal/package-event-handler/EventInterface.php index 072eed3a..78768a17 100755 --- a/Internal/package-event-handler/EventInterface.php +++ b/Internal/package-event-handler/EventInterface.php @@ -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.