Skip to content

Commit

Permalink
array
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jul 11, 2024
1 parent e34f7f1 commit 788d2aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Core/Edge/ComponentFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down

0 comments on commit 788d2aa

Please sign in to comment.