diff --git a/src/Core/Edge/ComponentFinder.php b/src/Core/Edge/ComponentFinder.php index ca544889..f4df0fbc 100644 --- a/src/Core/Edge/ComponentFinder.php +++ b/src/Core/Edge/ComponentFinder.php @@ -43,7 +43,11 @@ public function find(): array fn () => $this->scan() ); - if (!is_array($caches) || array_is_list($caches)) { + if ($caches === []) { + return $caches; + } + + if ((!is_array($caches) || array_is_list($caches))) { throw new \RuntimeException('The class component list should be assoc array.'); }