mirror of
https://github.com/getgrav/grav.git
synced 2026-04-14 08:37:39 +02:00
Fixed Plugin::config() returning null in some cases
This commit is contained in:
@@ -118,7 +118,7 @@ class Plugin implements EventSubscriberInterface, ArrayAccess
|
||||
*/
|
||||
public function config()
|
||||
{
|
||||
return null !== $this->config ? $this->config["plugins.{$this->name}"] : [];
|
||||
return $this->config["plugins.{$this->name}"] ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user