From c8cf329c94ac469c4b7e5f62de4b838488b093da Mon Sep 17 00:00:00 2001 From: Jack Noordhuis Date: Fri, 25 Oct 2019 06:26:42 +1100 Subject: [PATCH] Plugin::getLogger() interface no longer depends on PluginLogger (#3160) The Plugin contract now typehints the relied on AttachableLogger contract rather than the concrete PluginLogger implementation. --- src/plugin/Plugin.php | 4 ++-- src/plugin/PluginBase.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugin/Plugin.php b/src/plugin/Plugin.php index 9813061be..7b6328e41 100644 --- a/src/plugin/Plugin.php +++ b/src/plugin/Plugin.php @@ -81,9 +81,9 @@ interface Plugin{ public function getName() : string; /** - * @return PluginLogger + * @return \AttachableLogger */ - public function getLogger() : PluginLogger; + public function getLogger() : \AttachableLogger; /** * @return PluginLoader diff --git a/src/plugin/PluginBase.php b/src/plugin/PluginBase.php index 1f04c5b61..a3a16f3d3 100644 --- a/src/plugin/PluginBase.php +++ b/src/plugin/PluginBase.php @@ -163,9 +163,9 @@ abstract class PluginBase implements Plugin, CommandExecutor{ } /** - * @return PluginLogger + * @return \AttachableLogger */ - public function getLogger() : PluginLogger{ + public function getLogger() : \AttachableLogger{ return $this->logger; }