Skip to content

Commit

Permalink
Remove use of firstWhere
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega authored Oct 25, 2019
1 parent e910273 commit 26fe2a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/ArtisanMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ private function getNamespaceMenuBuilder(\stdClass $namespace)
$menu->setBackgroundColour('black');
$menu->setForegroundColour('white');

$namespaceRootCommand = $this->commands->firstWhere('name', $namespace->id);
$namespaceRootCommand = $this->commands->where('name', $namespace->id)->first();

if ($namespaceRootCommand) {
$this->addCommandMenuItem($menu,$namespaceRootCommand);
Expand Down Expand Up @@ -256,4 +256,4 @@ private function commandSelected(CliMenu $menu, \stdClass $command)


}
}
}

0 comments on commit 26fe2a2

Please sign in to comment.