mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +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:
parent
46e005543f
commit
c8cf329c94
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user