mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed Plugin::config() returning null in some cases
This commit is contained in:
parent
a6fb0a14f0
commit
5bec5db5e1
|
|
@ -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}"] ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user