Skip to content

Commit

Permalink
Simplified type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
zingimmick committed Apr 5, 2022
1 parent d5fe737 commit d70bd75
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Commands/SmsSwitchConnectionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ protected function getOptions(): array
public function handle(): void
{
$connection = $this->argument('connection');
if (\is_array($connection)) {
return;
}

if ($connection === null) {
if (! is_string($connection)) {
return;
}

Expand Down

0 comments on commit d70bd75

Please sign in to comment.