mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
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.
This commit is contained in:
@ -81,9 +81,9 @@ interface Plugin{
|
||||
public function getName() : string;
|
||||
|
||||
/**
|
||||
* @return PluginLogger
|
||||
* @return \AttachableLogger
|
||||
*/
|
||||
public function getLogger() : PluginLogger;
|
||||
public function getLogger() : \AttachableLogger;
|
||||
|
||||
/**
|
||||
* @return PluginLoader
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user