Fixed Plugin::config() returning null in some cases

This commit is contained in:
Matias Griese 2021-12-16 14:25:51 +02:00
parent a6fb0a14f0
commit 5bec5db5e1

View File

@ -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}"] ?? [];
}
/**