From baf3e8137795061759e9395a3660ffe587a1993b Mon Sep 17 00:00:00 2001 From: Brandon Nifong Date: Sat, 16 May 2020 06:30:54 -0600 Subject: [PATCH] Fix invalid array access notice on 7.4 --- src/Autoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Autoloader.php b/src/Autoloader.php index 34a4608..972b005 100644 --- a/src/Autoloader.php +++ b/src/Autoloader.php @@ -135,7 +135,7 @@ private function updateCache() $this->autoPlugins = get_plugins($this->relativePath); $this->muPlugins = get_mu_plugins(); $plugins = array_diff_key($this->autoPlugins, $this->muPlugins); - $rebuild = !is_array($this->cache['plugins']); + $rebuild = !isset($this->cache['plugins']); $this->activated = $rebuild ? $plugins : array_diff_key($plugins, $this->cache['plugins']); $this->cache = ['plugins' => $plugins, 'count' => $this->countPlugins()];