From 5bec5db5e13ae63b84df59c1c5c8305abe558120 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Thu, 16 Dec 2021 14:25:51 +0200 Subject: [PATCH] Fixed Plugin::config() returning null in some cases --- system/src/Grav/Common/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Plugin.php b/system/src/Grav/Common/Plugin.php index 3b0d3fb14..ac5a3c474 100644 --- a/system/src/Grav/Common/Plugin.php +++ b/system/src/Grav/Common/Plugin.php @@ -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}"] ?? []; } /**